Settings

Theme

Easy sorting in Go

github.com

5 points by miolini 10 years ago · 4 comments

Reader

zzzcpan 10 years 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.

patrickmn 10 years ago

Same idea: https://github.com/patrickmn/sortutil

Wish it was easier without reflection.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection