Dark Hacker News
new
|
best
|
ask
|
show
|
jobs
Easy sorting in Go | Dark Hacker News
Easy sorting in Go
(github.com)
5 points
by
miolini
10 years ago
| 4 comments
zzzcpan
10 years ago
|
next
[−]
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
10 years ago
|
parent
|
next
[−]
Could you please get some example?
patrickmn
10 years ago
|
next
[−]
Same idea:
https://github.com/patrickmn/sortutil
Wish it was easier without reflection.
miolini
10 years ago
|
parent
|
next
[−]
Thanks. But it's also use reflect package.