When comparing Negroni vs Martini, the Slant community recommends Negroni for most people. In the question“What are the best web frameworks for Go?” Negroni is ranked 7th while Martini is ranked 8th. The most important reason people chose Negroni is:
Negroni was developed as an alternative to Martini and Martini's "batteries included approach". You can choose which middlewares to include in your project. This way you get to choose what to have built-in.
Ranked in these QuestionsQuestion Ranking
Pros
Pro Choose what features you want to have
Negroni was developed as an alternative to Martini and Martini's "batteries included approach". You can choose which middlewares to include in your project. This way you get to choose what to have built-in.
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.
Cons
Con No built in router
Negroni cannot really be considered a true web framework because it does not have a built-in router. You need to choose one of the many web routers already developed by the Go community and integrate it into your Negroni project.
Con No longer maintained
Martini is no longer being actively maintained.