Ask HN: Is there a project based book or course on Go for writing web APIs?
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?
33 comments
[ 0.34 ms ] story [ 84.0 ms ] threadI hope the book is good, but I guess I'll never know.
You already know the book is pretty good, you just wanted to complain about DRM, I suspect. I hope that's not the case.
A single data point is not authoritative, but my comment shows a pretty solid trend toward "pretty good." I expect you'll run out to go find some rotten carrots to eat now?
https://github.com/ardanlabs/service
https://lets-go.alexedwards.net/
https://store.dominicstpierre.com/build-saas-apps-in-go?coup...
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.
[0] https://github.com/gin-gonic/gin
[1] https://golang.org/doc/articles/wiki
One thing to note is that Gin's Context is not the standard context.Context, which some find problematic. Most (vocal?) Gophers prefer sticking with the standard library and Gorilla.
context: working in large org building backend services that speak to other backend services via various crappy http / rest / soap APIs.
https://astaxie.gitbooks.io/build-web-application-with-golan...
From the writer of this blog: https://www.thepolyglotdeveloper.com/
(Repo: https://github.com/astaxie/build-web-application-with-golang)
https://vluxe.io/golang-router.html
For an example