Documentation ¶ Index ¶ func Sort(input []int, order string) ([]int, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Sort ¶ func Sort(input []int, order string) ([]int, error) Sort takes a slice of integers, a sorting order and returns a slice sorted using the merge sort algorithm or an error if the sorting order is invalid. order can have values: \"asc\" or \"desc\" (irrespective of case). Types ¶ This section is empty. Source Files ¶ View all Source files mergeSort.go Click to show internal directories. Click to hide internal directories.