News for hackers. Stuff that matters.
Re:Ask HN: What is the current state of web frameworks in Go... by astockwell on Saturday July 14, 2018 @01:03AM (#17528918)
After building apps in Martini and Revel, I’ve moved to using a smattering of decent (IMHO) packages good at 1 thing:

Let me render templates in a layout file with `yield` - https://github.com/unrolled/render

Let me quickly route with param support - https://github.com/julienschmidt/httprouter

Sessions, flash messages, and secure cookies - http://www.gorillatoolkit.org/pkg/sessions

POST parameter-to-structure binding (this is optional and easy enough to do by hand) - https://github.com/mholt/binding

I write my own middlewares for logging, auth, etc. Use viper for configuration, gorm for an ORM, and for anything more complicated, accept that you’re about to learn a whole lot about it because you’re gonna be writing it yourself.

Re:Ask HN: What is the current state of web frameworks in Go... by astockwell on Saturday July 14, 2018 @01:05AM (#17528925)
OH! And json-to-go people, use json-to-go. Thank me (well, mholt really) later!
Re:Ask HN: What is the current state of web frameworks in Go... by guessmyname on Saturday July 14, 2018 @01:42AM (#17529008)
Here is a link for the lazy [1].

@mholt also created curl-to-go [2].

[1] https://mholt.github.io/json-to-go/

[2] https://mholt.github.io/curl-to-go/