When comparing Gin-gonic vs Revel, the Slant community recommends Gin-gonic for most people. In the question“What are the best web frameworks for Go?” Gin-gonic is ranked 1st while Revel is ranked 2nd. The most important reason people chose Gin-gonic is:
The documentation for Gin is broad and comprehensive. Most tasks that you will need to do relating to the router can be found easily in the docs.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Extensive documentation
The documentation for Gin is broad and comprehensive. Most tasks that you will need to do relating to the router can be found easily in the docs.
Pro Good for building REST APIs
Gin is a pretty minimalistic framework. Only the most essential features and libraries are included, making Gin a great framework for developing high-performance REST APIs.
Pro Well-tested and numerous middlewares
The Gin community has created numerous well-tested middlewares that make developing for Gin a charm. Features include gzip, an authorization middleware, and sentry.
Pro High performance
Gin runs 40x faster than Martini, and runs comparatively well compared to other Golang frameworks.
Pro Comes bundled with a code reload tool
Revel comes bundled with a code reload tool which rebuilds the project on every file change. This code reload tool is also used to run, build and deploy the Revel application that you are building.
Pro Good examples easy to understand with simple emulated MVC behavior
Pro No need to find and install external libraries
Revel is a "batteries included" web framework, which means that a lot of features already come out of the box. This way you don't have to spend time and find third-party libraries to integrate to the framework for most of the tasks you need to complete.
Pro Easy to learn for fast development
Cons
Con Might not be suitable for large backend applications
Gin-gonic is great for building a REST API for the backend if you want to develop an SPA using a frontend framework. But for anything that requires more features on the server side, it would be better to use a more "batteries included" framework.
Con Non-idiomatic code
Con Outdated
The world has moved past its MVC obsession. It's not the way the web works anymore. The good thing about go is that it's trivial to write a server applications (literally takes minutes). relying on a bloated, archaic framework is missing the point
Con Dead
Thankfully, this abomination is no longer being developed
Con No official support for mongo
Revel does not come with any support for MongoDB, you can integrate third-party libraries but they have been reported to crash under heavy load.