Once you clone, run the following command for output.
go run main.go
Inside pkg/ you will find Algorithm package which imports all sorting algorithms and returns the function pointer Sort() based on the requested type.
Swap-based Sorting Algorithms:
- Bubble Sort: https://en.wikipedia.org/wiki/Bubble_sort
- Selection Sort: https://en.wikipedia.org/wiki/Selection_sort
- Insertion Sort: https://en.wikipedia.org/wiki/Insertion_sort
- Merge Sort: https://en.wikipedia.org/wiki/Merge_sort
- Quick Sort: https://en.wikipedia.org/wiki/Quicksort
- Heap Sort: https://en.wikipedia.org/wiki/Heapsort