[–] patrickmn 10y ago ↗ Same idea: https://github.com/patrickmn/sortutilWish it was easier without reflection. [–] miolini 10y ago ↗ Thanks. But it's also use reflect package.
[–] zzzcpan 10y ago ↗ Yeah, 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 ago ↗ Could you please get some example?
4 comments
[ 2.4 ms ] story [ 20.8 ms ] threadWish it was easier without reflection.