Earlier quoted context omitted.
Could you go into more detail about this? I'm using Gin currently and would like to avoid any potential landmines if possible.
I didn't like Gin because they don't let you use whatever routes you want. Something like /:category/:product and /user/:name (notice no ":") is not admissible because ":category" in the first route clashes with "user" in the second route (wtf?)
Ask HN: Is there a project based book or course on Go for writing web APIs?
31–34 of 34 posts
Re: Ask HN: Is there a project based book or course on Go for writing web APIs?
#32If you're coming from Ruby, you might like Gin[0]. 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
I've had a bad experience with Gin and when asking about alternatives in a local Go meetup I was given the advice to use https://github.com/go-chi/chi or gorilla/mux.
Re: Ask HN: Is there a project based book or course on Go for writing web APIs?
#33If you're coming from Ruby, you might like Gin[0]. 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
I've had a bad experience with Gin and when asking about alternatives in a local Go meetup I was given the advice to use https://github.com/go-chi/chi or gorilla/mux.
context: working in large org building backend services that speak to other backend services via various crappy http / rest / soap APIs.
Re: Ask HN: Is there a project based book or course on Go for writing web APIs?
#34In https://www.manning.com/books/go-web-programming , they start with server-side rendered views and then dedicate the whole last part of the book to web services. It's pretty good!
At first I thought book was in Slovenian or something, until I realized there was some DOM level decryption happening. I simultaneously wanted to open it up to figure out how it worked and close the page because it was so broken and counter to the supposedly simple idea of displaying words on a page that it infuriated me. I hope the book is good, but I guess I'll never know.