News for hackers. Stuff that matters.
Re:Ask HN: What is your Golang web-dev tech stack? by mdasen on Tuesday December 05, 2017 @01:24PM (#15854155)
I've started using Echo[1] and it seems to provide most of what I'm looking for (routing, context, sessions, CSRF protection, form/json binding, etc). For templating, I'm using QuickTemplate[2] which creates statically generated templates, but Pongo2[3] and Jet[4] also look reasonable. sqlx[5], gorm[6], and sqlboiler[7] all seem reasonable for database access, depending on what your style is (sqlx being oriented toward manual statements, gorm being reflection-based orm-ish, and sqlboiler using go generate's code generation to make statically generated access for you).

If you don't want to piece things together yourself (and want a more Rails-like experience), Buffalo[8] is probably your best bet.

[1] https://echo.labstack.com/

[2] https://github.com/valyala/quicktemplate

[3] https://github.com/flosch/pongo2

[4] https://github.com/CloudyKit/jet

[5] https://github.com/jmoiron/sqlx

[6] https://github.com/jinzhu/gorm

[7] https://github.com/volatiletech/sqlboiler

[8] https://github.com/gobuffalo/buffalo

Re:Ask HN: What is your Golang web-dev tech stack? by alain_gilbert on Wednesday December 06, 2017 @04:40AM (#15859811)
I started using "realize" to get live realod [9].

And I also use "bindata" to compile all my static files into the final binary [10].

[9] https://github.com/tockins/realize

[10] https://github.com/jteeuwen/go-bindata

Re:Ask HN: What is your Golang web-dev tech stack? by aalhour on Tuesday December 05, 2017 @01:29PM (#15854229)
Sweet! Buffalo looks really interesting. I was playing with Sails the other day, which is a Rails-like framework for nodejs, I will try Buffalo and try to compare the experience. Would you recommend Buffalo for a JSON Web API mobile backend project or would it be an overkill?
Re:Ask HN: What is your Golang web-dev tech stack? by OhSoHumble on Tuesday December 05, 2017 @03:14PM (#15855353)
I don't know how relevant it is, but the creator of Buffalo has a video explaining how to hook up Vue to the framework: https://blog.gobuffalo.io/using-vue-js-with-buffalo-video-ee...
Re:Ask HN: What is your Golang web-dev tech stack? by barrongineer on Tuesday December 05, 2017 @01:47PM (#15854454)
It's fine for an api as well. When you create your app, just use the --api flag and it will leave out all of the front-end stuff.
Re:Ask HN: What is your Golang web-dev tech stack? by tptacek on Tuesday December 05, 2017 @01:31PM (#15854248)
Is there a way to use Echo where you're not using their weird handler interface, but rather just standard net/http Handlers?