When comparing Goji vs Martini, the Slant community recommends Martini for most people. In the question“What are the best web frameworks for Go?” Martini is ranked 5th while Goji is ranked 7th. 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
Pro Great performance
Goji is an abstraction layer over the standard Go library (which has support for HTTP) and added Einhorn support. There's probably very little you can do with Goji that you can't do with the standard library and a bit of elbow grease.
This makes Goji an extremely lightweight and fast framework.
Pro Socket manager integration
Goji integrates with Einhorn, which is a language agnostic socket manager. Making it possible to have websocket support in Goji.
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.
Con Doesn't add a lot of functionality on top of the standard library
Most of the tasks that Goji 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 Goji development being abandoned one day.
Con No longer maintained
Martini is no longer being actively maintained.