Y
Hacker News
new
|
ask
|
show
|
jobs
Easy sorting in Go
(
github.com
)
5 points
by
miolini
3665 days ago
2 comments
zzzcpan
3664 days 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.
link
miolini
3662 days ago
Could you please get some example?
link
patrickmn
3664 days ago
Same idea:
https://github.com/patrickmn/sortutil
Wish it was easier without reflection.
link
miolini
3664 days ago
Thanks. But it's also use reflect package.
link