3 ms·
Easy sorting in Go
- patrickmn 10y agoSame idea: https://github.com/patrickmn/sortutil https://github.com/patrickmn/sortutil Wish it was easier without reflection.
- miolini 10y agoThanks. But it's also use reflect package.
- zzzcpan 10y agoYeah, OO interface for sort from Go's standard library is crap. But why reflect and all that magic? I was expecting something based on function literals as a decent way to sort truly arbitrary data and not break context.
- miolini 10y agoCould you please get some example?