News for hackers. Stuff that matters.
Re:Gadget: A smallish web framework for Go by acron0 on Tuesday November 26, 2013 @08:48AM (#6801128)
Looks smart! Curiously, any reason you chose not to use Revel?
Re:Gadget: A smallish web framework for Go by redneckbeard on Tuesday November 26, 2013 @08:51AM (#6801157)
Two reasons:

1) I didn't want routes in a text file. This is whiny, I know. Just a personal preference. 2) Go is the only programming language that has held my attention long enough to actually finish a fairly usable framework. Writing a framework is a good exercise in software design, so I felt like I had to use the opportunity.

Re:Gadget: A smallish web framework for Go by acron0 on Tuesday November 26, 2013 @10:00AM (#6801636)
I totally agree with you on routes in a text file. Are you gonna go 'batteries included' with Gadget, or keep aiming for that middle ground?

I ask because I am looking to put my weight behind a framework and am undecided, but not at all attracted to Revel...

Re:Gadget: A smallish web framework for Go by redneckbeard on Tuesday November 26, 2013 @10:10AM (#6801714)
I would like to go something like "batteries included but not installed." The User interface I have now is a good example of what I mean -- I would prefer to keep everything built around implementing an interface, but it might be nice to provide an "official" authentication implementation as a subpackage.

I've started writing subpackages as they become important to me. The most useful thus far is probably gadget/forms, which is very much inspired by Django forms. I prefer a data validation layer that is independent from or at least very loosely coupled to a model layer.

Re:Gadget: A smallish web framework for Go by ds_ on Tuesday November 26, 2013 @09:30AM (#6801401)
Or martini? I liked the look of martini but have not delved deep enough to make an informed decision. Might pick Go for my next side project...
Re:Gadget: A smallish web framework for Go by saiko-chriskun on Tuesday November 26, 2013 @02:13PM (#6803453)
Just came back from a go meetup where I met the developer of martini actually, I think it's a really well thought-out framework :)
Re:Gadget: A smallish web framework for Go by mmgutz on Tuesday November 26, 2013 @09:39PM (#6805925)
The only thing I really see in martini over plain gorilla mux is dependency injection which has a reflection cost. Once you peel back the Classic mode, which I advise not using except for trivial projects, your code base is about the same. I'm sticking with gorilla.