Live data from Hacker News

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

news.ycombinator.com

21–30 of 34 posts

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

#23

Earlier quoted context omitted.

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.

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?)

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

#24

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: https://buildsaasappingo.com/

Hi, I'm Dominic the author of Build SaaS apps in Go, thank you for sharing the book website. If there's any questions please do not hesitate to ask. Here's a 25% discount direct buy link if that can help.

https://store.dominicstpierre.com/build-saas-apps-in-go?coup...

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

#28

Earlier quoted context omitted.

What do you mean you'll never know? Your parent comment said it was pretty good. A single data point is not authoritative, but it shows a pretty solid trend toward "pretty good." You already know the book is pretty good, you just wanted to complain about DRM, I suspect. I hope that's not the case.

Eating rotten carrots is pretty good. 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?

It's funny that you think that reading a book of unknown quality and eating a rotten carrot, which is guaranteed to be rotten, are comfortable in any way whatsoever.

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

#29

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: https://buildsaasappingo.com/

Thanks, great suggestions in this thread. I ended up buying this

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

#30

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've used Gin for several small to medium projects without too much difficulty. I think Gin is a good way to learn quickly since its ecosystem introduces you to a lot of the pieces you will need. Personally, I don't do enough web development to grow out of it, since my web related projects are not a primary focus. One thing to note is that Gin's Context is not the standard context.Context, which some find problematic…

It's true that Gin's Context is different from context.Context, but I don't see how that's inherently problematic.
Post reply on HN