TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Easy sorting in Go

5 点作者 miolini将近 9 年前

2 条评论

zzzcpan将近 9 年前
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 未加载
patrickmn将近 9 年前
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 未加载