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.

Ask HN: Is there a project based book or course on Go for writing web APIs?

131 pointsby lignuxalmost 6 years ago
I am in the process of learning go and i think something like Michael Hartl's Rails Tutorial would fit nicely for me right now. I've looked at usegolang.com but i am not sure it has emphasis on API's. Any suggestions?

12 comments

petercooperalmost 6 years ago
I saw this recommended on HN the other day which covers that ground. Have not done it myself so this is a pointer rather than a recommendation: <a href="https:&#x2F;&#x2F;buildsaasappingo.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;buildsaasappingo.com&#x2F;</a>
评论 #20707729 未加载
评论 #20708076 未加载
评论 #20714133 未加载
ryanstreuralmost 6 years ago
In <a href="https:&#x2F;&#x2F;www.manning.com&#x2F;books&#x2F;go-web-programming" rel="nofollow">https:&#x2F;&#x2F;www.manning.com&#x2F;books&#x2F;go-web-programming</a>, they start with server-side rendered views and then dedicate the whole last part of the book to web services. It&#x27;s pretty good!
评论 #20705793 未加载
sequence7almost 6 years ago
I&#x27;m working through Let&#x27;s Go! by Alex Edwards right now, it&#x27;s not specifically focussed on APIs but the book guides you through building a web application in Go. My experience so far has been very positive.<p><a href="https:&#x2F;&#x2F;lets-go.alexedwards.net&#x2F;" rel="nofollow">https:&#x2F;&#x2F;lets-go.alexedwards.net&#x2F;</a>
评论 #20706777 未加载
bndwalmost 6 years ago
If you&#x27;re coming from Ruby, you might like Gin[0].<p>I&#x27;d also recommend learning to write web APIs with the standard library so you know the primitives. Writing Web Applications[1] on golang.org covers the basics.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;gin-gonic&#x2F;gin" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;gin-gonic&#x2F;gin</a><p>[1] <a href="https:&#x2F;&#x2F;golang.org&#x2F;doc&#x2F;articles&#x2F;wiki" rel="nofollow">https:&#x2F;&#x2F;golang.org&#x2F;doc&#x2F;articles&#x2F;wiki</a>
评论 #20706496 未加载
ValentineCalmost 6 years ago
I like Asta Xie&#x27;s &quot;Build Web Application with Golang&quot; GitBook: <a href="https:&#x2F;&#x2F;astaxie.gitbooks.io&#x2F;build-web-application-with-golang&#x2F;en&#x2F;" rel="nofollow">https:&#x2F;&#x2F;astaxie.gitbooks.io&#x2F;build-web-application-with-golan...</a><p>(Repo: <a href="https:&#x2F;&#x2F;github.com&#x2F;astaxie&#x2F;build-web-application-with-golang" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;astaxie&#x2F;build-web-application-with-golang</a>)
yawzalmost 6 years ago
<a href="https:&#x2F;&#x2F;github.com&#x2F;quii&#x2F;learn-go-with-tests" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;quii&#x2F;learn-go-with-tests</a> is a great resource. It has some relevant sections to writing Web APIs.
navdalmost 6 years ago
Not a tutorial but here&#x27;s a project that goes over the architecture of building one using best practices. You may not need everything in it (so take from it what you will), but it should be helpful:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;ardanlabs&#x2F;service" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ardanlabs&#x2F;service</a>
dustinmralmost 6 years ago
I got an email about this book the other day: <a href="https:&#x2F;&#x2F;gumroad.com&#x2F;l&#x2F;kjHSa" rel="nofollow">https:&#x2F;&#x2F;gumroad.com&#x2F;l&#x2F;kjHSa</a><p>From the writer of this blog: <a href="https:&#x2F;&#x2F;www.thepolyglotdeveloper.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.thepolyglotdeveloper.com&#x2F;</a>
segmondyalmost 6 years ago
<a href="https:&#x2F;&#x2F;gowebexamples.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;gowebexamples.com&#x2F;</a>
dandigangialmost 6 years ago
Excellent thread! Thanks all. Also in the process of getting GOing on Go. &gt;:) (Yes, I am a geeky pun guy)
PhilippGillealmost 6 years ago
Haven&#x27;t read through it myself, but I think it&#x27;s noteworthy and it wasn&#x27;t mentioned here yet:<p><a href="https:&#x2F;&#x2F;astaxie.gitbooks.io&#x2F;build-web-application-with-golang&#x2F;en&#x2F;" rel="nofollow">https:&#x2F;&#x2F;astaxie.gitbooks.io&#x2F;build-web-application-with-golan...</a>
评论 #20707112 未加载
tmalyalmost 6 years ago
If you really want to get a good understanding of Go and web, I would work through building your own router see:<p><a href="https:&#x2F;&#x2F;vluxe.io&#x2F;golang-router.html" rel="nofollow">https:&#x2F;&#x2F;vluxe.io&#x2F;golang-router.html</a><p>For an example