When comparing Martini vs Buffalo, the Slant community recommends Martini for most people. In the question“What are the best web frameworks for Go?” Martini is ranked 6th while Buffalo is ranked 8th. 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 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 Hot reloading
The dev command will watch your .go and .html files and the asset folder by default. It will rebuild and restart your binary for you automatically so you don't have to worry about such things.
Just run the buffalo dev command and go to localhost:3000/ to see all changes live!
Pro CLI project scaffolding
Buffalo aims to make building new web applications in Go as quick and simple as possible.
buffalo new coke
That will generate a whole new Buffalo application that is ready to go. It'll even run go get for you to make sure you have all of the necessary dependencies needed to run your application.
Pro Database migration
Easily migrate database.
Con No longer maintained
Martini is no longer being actively maintained.