HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Easy sorting in Go | Hacker News Reader
Easy sorting in Go
github.com
5 points
·
miolini
·
·
4 comments
Open article
Save
View on HN
zzzcpan
·
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
(original poster)
·
Could you please get some example?
patrickmn
·
Same idea:
https://github.com/patrickmn/sortutil
Wish it was easier without reflection.
miolini
(original poster)
·
Thanks. But it's also use reflect package.
Reply on news.ycombinator.com