Radish, Keep Going!
Apr 23, 2020 · Backend Development
Master Go’s sort Package: Implement Custom Sorting with Interface
This article explains how Go's sort package internally uses four algorithms, how to implement sort.Interface with Len, Less, and Swap methods, and provides code examples for sorting int slices and custom structs by different fields.
AlgorithmsSliceinterface
0 likes · 5 min read
