Sorting

In this repo I apply four type for sorting algorithms in Golang.

1. Bubble sort.
2. Insertion sort.
3. Selection sort.
4. Quick sort.

Addition

  • Apply unit test for all algorithm.
  • It's shows which algorithm is faster.
  • Display execution time of each algorithm.

Run Commands

  • go run main.go for run program.
  • go test test/<test_name> for run unit test.

Output

output