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