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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Go Koans

106 点作者 gnocchi超过 10 年前

7 条评论

happyhappy超过 10 年前
This doesn&#x27;t look very idiomatic, with assert() and __int__ etc. Please don&#x27;t try to learn Go from this.<p>Edit: to be a little more constructive, do the Go tour instead.
评论 #8982001 未加载
评论 #8981184 未加载
enneff超过 10 年前
While I appreciate the energy put into this, I&#x27;m not a fan. I&#x27;m generally wary of tutorials that use examples that don&#x27;t look like real programs. To me, this looks like a great idea from Ruby that has been shoe-horned into Go, and it feels weird.<p>However, there is the very good &quot;Learn Go in Y Minutes&quot; by Sonia Keys, which takes a similar approach but is more idiomatic, thorough, and concise: <a href="http://learnxinyminutes.com/docs/go/" rel="nofollow">http:&#x2F;&#x2F;learnxinyminutes.com&#x2F;docs&#x2F;go&#x2F;</a>
phinze超过 10 年前
Just ran through this and quite enjoyed it. It&#x27;s very different from &quot;A Tour of Go&quot;. I really like how he creates a narrative out of test failures. It&#x27;s by no means effective as a sole source for learning Go, but I&#x27;d recommend it to those who have completed the Tour as a way of getting more practice working with Go&#x27;s various data types.
sagichmal超过 10 年前
<p><pre><code> &gt; package go_koans </code></pre> Hmm. I wouldn&#x27;t trust this very much.
评论 #8981394 未加载
评论 #8981344 未加载
hookey超过 10 年前
Is there an order I&#x27;m supposed to be doing these in?
评论 #8981374 未加载
vbezhenar超过 10 年前
Would be nice to have it in the browser like Go tour.
评论 #8983391 未加载
jpmonette超过 10 年前
Good approach to learn Go with simple examples. Thanks!