ordering
1 article
-
Represent and transform data safely
Sort a Go Slice Descending with sort.Slice or sort.Interface
Use sort.Slice for a one-off descending comparison, or define sort.Interface when the ordering is worth reusing.
1 article
Represent and transform data safely
Use sort.Slice for a one-off descending comparison, or define sort.Interface when the ordering is worth reusing.