Sorting in Go - Don't Reinvent This Wheel
Sorting in Go – Don’t Reinvent This Wheel
Sorting is a common task in programming, and for that reason most languages have a default sorting algorithm in their standard library. Go is one such language. Go has gone about providing sort functionality in one of the most elegant ways possible, via an interface.
type Interface interface { // Len is the number of elements in the collection. Len() int // Less reports whether the element…
View On WordPress
















