Hacker News new | ask | show | jobs
by navd 4074 days ago
> I just don't see a monolithic web framework being high up on the list of "must haves".

And I think that's what makes Go so welcome to many people. In fact, I'm tired of frameworks that do everything for me because they tend to do everything just "well enough".

And I noticed the OP is using Martini - which isn't necessarily bad - but it's not needed. It does make learning a language like Go a lot easier for newcomers though... I do think this sheds some wrong light on how people should be using Go. Martini isn't the answer, you should be using interfaces to make your code easier to work with, especially since they are implemented in Go so well.

2 comments

In fact, Go's standard library is fantastic, so you don't need Martini for many things. I think it provides a nice layer on top of the code for comprehensibility when reading through code
Better use gin or negroni, since martini is slow due to reflections
I've been using negroni. Its by the maker of Martini after he learned about 'idiomatic Go'. Very solid framework that does what it needs to and does it quickly.
I totally agree and yeah, I used Martini to make it a little easier to read
Understood, the community really needs more idiomatic examples for building web apps. Someone should take this up.