Comment Comment by LVB >The tried and true approach of providing a compare method works great and has none of these drawbacks.Agreed! https://pkg.go.dev/sort#Slice is wonderful. (Added a bit after this article was written, I think.) parent LVB 4 years ago
Agreed! https://pkg.go.dev/sort#Slice is wonderful. (Added a bit after this article was written, I think.)