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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: What is the best way to learn Go?

13 点作者 W-Stool8 个月前
After 40+ years of writing C I'm going to learn Go. Is "The Go Programming Language" still the way? It is 8 years old now and the language has seen more than a few changes between then and now. What books should I be looking at?

10 条评论

t-38 个月前
Read the spec: <a href="https:&#x2F;&#x2F;go.dev&#x2F;ref&#x2F;spec" rel="nofollow">https:&#x2F;&#x2F;go.dev&#x2F;ref&#x2F;spec</a><p>Check out the examples: <a href="https:&#x2F;&#x2F;gobyexample.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;gobyexample.com&#x2F;</a><p>Check the docs for anything else: <a href="https:&#x2F;&#x2F;go.dev&#x2F;doc&#x2F;" rel="nofollow">https:&#x2F;&#x2F;go.dev&#x2F;doc&#x2F;</a>
评论 #41688640 未加载
评论 #41686636 未加载
codegeek8 个月前
Other than some of the resources mentioned already in comments, I highly recommend Alex Edwards books Lets Go and Lets go Further. Helped me a lot and still does when building Web Applications.<p><a href="https:&#x2F;&#x2F;www.alexedwards.net&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.alexedwards.net&#x2F;</a><p><a href="https:&#x2F;&#x2F;lets-go.alexedwards.net&#x2F;" rel="nofollow">https:&#x2F;&#x2F;lets-go.alexedwards.net&#x2F;</a><p><a href="https:&#x2F;&#x2F;lets-go-further.alexedwards.net&#x2F;" rel="nofollow">https:&#x2F;&#x2F;lets-go-further.alexedwards.net&#x2F;</a>
runjake8 个月前
Here&#x27;s how I did it as someone previously competent in C, C#, Java, etc.<p>I started here: <a href="https:&#x2F;&#x2F;go.dev&#x2F;learn&#x2F;" rel="nofollow">https:&#x2F;&#x2F;go.dev&#x2F;learn&#x2F;</a><p>1. Did the Go Tour: <a href="https:&#x2F;&#x2F;go.dev&#x2F;tour&#x2F;welcome&#x2F;1" rel="nofollow">https:&#x2F;&#x2F;go.dev&#x2F;tour&#x2F;welcome&#x2F;1</a><p>2. Then Getting Started: <a href="https:&#x2F;&#x2F;go.dev&#x2F;doc&#x2F;tutorial&#x2F;getting-started" rel="nofollow">https:&#x2F;&#x2F;go.dev&#x2F;doc&#x2F;tutorial&#x2F;getting-started</a><p>Then, I started a non-trivial project using the excellent Go docs and LearnXinYMinutes as references. <a href="https:&#x2F;&#x2F;learnxinyminutes.com&#x2F;docs&#x2F;go&#x2F;" rel="nofollow">https:&#x2F;&#x2F;learnxinyminutes.com&#x2F;docs&#x2F;go&#x2F;</a><p>Once I kind of got the hang of Go, I started using Go by Example much more. I&#x27;ve never read a Go book.<p>With competent prompting, Claude.ai seems pretty good at generating Go code and explaining Go code and this has really accelerated it for me.<p>All together, I started from not knowing Go to beginning on a non-trivial program in my first 4 hours. It was super great.
blinded8 个月前
When I was first learning I liked this video series.<p><a href="https:&#x2F;&#x2F;www.oreilly.com&#x2F;library&#x2F;view&#x2F;intermediate-go-programming&#x2F;9781491944073&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.oreilly.com&#x2F;library&#x2F;view&#x2F;intermediate-go-program...</a><p>Also checkout this repo for helpful links: <a href="https:&#x2F;&#x2F;awesome-go.com&#x2F;free-e-books&#x2F;" rel="nofollow">https:&#x2F;&#x2F;awesome-go.com&#x2F;free-e-books&#x2F;</a>
cpach8 个月前
There’s no Go book that I personally would recommend without hesitation.<p>Instead, I would suggest that you try to find a bunch of blog posts and lectures and read&#x2F;watch them in order to get a feeling of the Go philosophy. The official Go blog has some good articles and otherwise I recommend to have a look at what Rob Pike and Russ Cox has written&#x2F;presented.<p>Then I believe that as soon as possible it’s a good idea to start some toy project so that you can dive in.<p>I’m afraid I don’t have too many links to share. This <i>might</i> be a good starting point: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=7VcArS4Wpqk" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=7VcArS4Wpqk</a><p>Here’s a meta-resource that could be useful: <a href="https:&#x2F;&#x2F;github.com&#x2F;avelino&#x2F;awesome-go">https:&#x2F;&#x2F;github.com&#x2F;avelino&#x2F;awesome-go</a> (see the <i>Resources</i> section at the end of the ToC).<p>Best of luck!
daviddever23box8 个月前
If you haven&#x27;t used a more current programming language in terms of tooling, you may be in for a shock: package management, concurrency, formatting and linting are all sorted, with decent support in Visual Studio Code. I&#x27;d honestly look at these things first so that you can right-size individual modules, etc.
h4ck_th3_pl4n3t8 个月前
<a href="https:&#x2F;&#x2F;quii.gitbook.io&#x2F;learn-go-with-tests" rel="nofollow">https:&#x2F;&#x2F;quii.gitbook.io&#x2F;learn-go-with-tests</a><p>Learn go with tests shows you the &quot;go way&quot; to do it, and introduces you to its integrated testing system while also teaching you go&#x27;s language concepts.<p>I highly recommend it, it&#x27;s awesome and was definitely worth doing it even whennyou are an experienced go programmer already.<p>The key to benefit from go&#x27;s toolchain the most is to set your opinions aside. Once you do that, the toolchain will automate so many things for you that you will learn to like only a couple weeks later because it takes time for the conventions to sink in...
评论 #41695805 未加载
beeburrt8 个月前
This series is excellent and underrated. Go Class:<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;playlist?list=PLoILbKo9rG3skRCj37Kn5Zj803hhiuRK6" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;playlist?list=PLoILbKo9rG3skRCj37Kn5...</a><p>This guy made this for his teammates as a Christmas present and then released it for free when he could have charged money for it somewhere like Udemy or Coursera.
gaws8 个月前
&gt; After 40+ years of writing C I&#x27;m going to learn Go.<p>Why make the switch now?
评论 #41690381 未加载
inquisitor275528 个月前
40 yrs jeez.<p>question sir, why not rust or typescript or python? what makes you want golang?
评论 #41685599 未加载