TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Easy sorting in Go

5 pointsby miolinialmost 9 years ago

2 comments

zzzcpanalmost 9 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.
评论 #11915461 未加载
patrickmnalmost 9 years ago
Same idea: <a href="https:&#x2F;&#x2F;github.com&#x2F;patrickmn&#x2F;sortutil" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;patrickmn&#x2F;sortutil</a><p>Wish it was easier without reflection.
评论 #11906513 未加载