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?
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://buildsaasappingo.com/" rel="nofollow">https://buildsaasappingo.com/</a>
In <a href="https://www.manning.com/books/go-web-programming" rel="nofollow">https://www.manning.com/books/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's pretty good!
I'm working through Let's Go! by Alex Edwards right now, it'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://lets-go.alexedwards.net/" rel="nofollow">https://lets-go.alexedwards.net/</a>
If you're coming from Ruby, you might like Gin[0].<p>I'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://github.com/gin-gonic/gin" rel="nofollow">https://github.com/gin-gonic/gin</a><p>[1] <a href="https://golang.org/doc/articles/wiki" rel="nofollow">https://golang.org/doc/articles/wiki</a>
I like Asta Xie's "Build Web Application with Golang" GitBook: <a href="https://astaxie.gitbooks.io/build-web-application-with-golang/en/" rel="nofollow">https://astaxie.gitbooks.io/build-web-application-with-golan...</a><p>(Repo: <a href="https://github.com/astaxie/build-web-application-with-golang" rel="nofollow">https://github.com/astaxie/build-web-application-with-golang</a>)
<a href="https://github.com/quii/learn-go-with-tests" rel="nofollow">https://github.com/quii/learn-go-with-tests</a> is a great resource. It has some relevant sections to writing Web APIs.
Not a tutorial but here'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://github.com/ardanlabs/service" rel="nofollow">https://github.com/ardanlabs/service</a>
I got an email about this book the other day: <a href="https://gumroad.com/l/kjHSa" rel="nofollow">https://gumroad.com/l/kjHSa</a><p>From the writer of this blog: <a href="https://www.thepolyglotdeveloper.com/" rel="nofollow">https://www.thepolyglotdeveloper.com/</a>
Haven't read through it myself, but I think it's noteworthy and it wasn't mentioned here yet:<p><a href="https://astaxie.gitbooks.io/build-web-application-with-golang/en/" rel="nofollow">https://astaxie.gitbooks.io/build-web-application-with-golan...</a>
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://vluxe.io/golang-router.html" rel="nofollow">https://vluxe.io/golang-router.html</a><p>For an example