News for hackers. Stuff that matters.
Re:Eight years of Go by fauigerzigerk on Friday November 10, 2017 @03:20PM (#15672627)
For sorting slices you only have to pass one function:

  sort.Slice(s, func(i, j int) bool { return s[i].X < s[j].X })

There are no comments on this comment yet.