When comparing Martini vs Gocraft/web, the Slant community recommends Martini for most people. In the question“What are the best web frameworks for Go?” Martini is ranked 8th while Gocraft/web is ranked 16th. The most important reason people chose Martini is:
A lot of effort has been put into making the documentation as clear and helpful as possible. And it shows. The documentation is thorough and complete. Every part of the framework is explained in a way that's clear and understandable.
Ranked in these QuestionsQuestion Ranking
Pros
Pro Well documented
A lot of effort has been put into making the documentation as clear and helpful as possible. And it shows.
The documentation is thorough and complete. Every part of the framework is explained in a way that's clear and understandable.
Pro No unneccessary cruft
Martini is a very minimal framework. It only comes packed with the most essential features and libraries needed to develop a web application. If you need more features, you can install third party libraries. This way you only use what you need.
Pro Flexible routing
Martini's routing is flexible and DRY. It supports parameters, wildcards and regex.
Pro High performance
gocraft/web is a minimalistic web framework which adds routing to the net/http
package from the standard library. Even so, web.go tries to compensate for the small abstraction that it offers by structuring routes in a tree instead of a list. As such, it's a very fast framework which makes it a good choice in applications where good performance is key.
Pro Routing supports parameters and regex
Cons
Con No longer maintained
Martini is no longer being actively maintained.
Con Doesn't add a lot of functionality on top of the standard library
Most of the tasks that gocraft/web is used for can be completed with standard library support without adding the overhead of an additional external library and without having the risk of web.co development being abandoned one day.