2 ms·
I'd like to add a few more options. First there is pat, by the Heroku / the guy that created Sinatra: https://github.com/bmizerany/pat https://github.com/bmizer
by bradrydzewski 14y ago
I'd like to add a few more options. First there is pat, by the Heroku / the guy that created Sinatra: https://github.com/bmizerany/pat https://github.com/bmizerany/pat
if you need simple routing and REST url parameters this is a great library to use. I've found it outperforms many of the other routing libraries. The best part is that it (mostly) uses the standard net.http library and you don't need to code against custom APIs.
there is also Gorilla Web Toolkit: http://www.gorillatoolkit.org/ http://www.gorillatoolkit.org/
this library has been around for a couple years, and is often recommended on the Go mailing list. It recently switched from Google Code to Github, so it doesn't have as many stars as the others. It provides routing, secure cookies, sessions, and more.
I personally would start with Gorilla or Pat, because they are very thin layers on top of the standard net.http library with little abstraction ... in many cases the standard library works great. If you end up needing a higher level framework you can always switch to something like Revel.