Comment Re: What is the appeal? (Score 2) 124
No, you do not have to do that. Here's an example of a custom comparison function to sort a list of strings by the second character:
a
sort.Slice(a, func(i, j int) bool { return a[i][1] a[j][1] })
The inline function syntax is slightly verbose, but not terrible considering you need to write types.