Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
Easy sorting in Go | Better HN
Easy sorting in Go
(opens in new tab)
(github.com)
5 points
miolini
9y ago
4 comments
Share
4 comments
default
newest
oldest
zzzcpan
9y 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
OP
9y ago
Could you please get some example?
patrickmn
9y ago
Same idea:
https://github.com/patrickmn/sortutil
Wish it was easier without reflection.
miolini
OP
9y ago
Thanks. But it's also use reflect package.
j
/
k
navigate · click thread line to collapse