Live data from Hacker News

A Comparison of Go Web Frameworks (2014)

corner.squareup.com

1–10 of 28 posts

Re: A Comparison of Go Web Frameworks (2014)

#5
post #3

Articles on Go web frameworks all end up at the same conclusion. The Go standard library is so strong around web servers it's hard to recommend anything else.

It's not entirely that simple. The problem isn't that net/http is so amazing that it's silly to replace it; it's that the replacements aren't yet up to the challenge --- by which I mean, none of them are yet so much of a win that the cost of losing compatibility with net/http outweighs the benefits.

Writing full-featured web apps in Golang in 2015 is still a lot like writing a Sinatra app was 8 years ago. It feels great at first, but you quickly realize that you're just building a half-assed version of Rails.

Re: A Comparison of Go Web Frameworks (2014)

#8
My personal favorite is alice:

https://github.com/justinas/alice

It's not very much code (only ~90 lines inc. comments), but I think it establishes a pattern that makes everything very straightforward from authentication to logging to runtime analysis. Plays very nicely with gorilla. I think the more you let net/http shine, the better.

Re: A Comparison of Go Web Frameworks (2014)

#9
post #2

You may also want to take a look at beego ( https://github.com/astaxie/beego ). It introduces a lot of workflow features on top of routing. Also, you may have an easier time with it if you can read Chinese.

Also Maracon (https://github.com/Unknwon/macaron), Negroni (https://github.com/codegangsta/negroni), and Goji (https://github.com/zenazn/goji). Negroni is from the creator of Martini, Goji is apparently high in antioxidants, but I'm partial to Macaron. I also use a homegrown Gorilla-based library at work...there's more than one way to skin this cat, that's for sure.

Re: A Comparison of Go Web Frameworks (2014)

#10
I've been using go-json-rest, which is by way of "just enough on top of net/http to make APIs easier."

https://ant0ine.github.io/go-json-rest/

Gorilla is useful, but more for its range of standalone components than as a framework.

https://github.com/gorilla

Then you'll want database-related packages like redigo and gorp.

https://github.com/garyburd/redigo

https://github.com/go-gorp/gorp

Post reply on HN