When comparing Go-rest vs Negroni, the Slant community recommends Negroni for most people. In the question“What are the best web frameworks for Go?” Negroni is ranked 7th while Go-rest is ranked 14th. 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 Easy to learn
The API is a small as it gets with only 3 methods HandleGET
, HandlePOST
and RunServer
. Making it rather easy to learn just for that fact.
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.
Cons
Con Not very active
Latest commit was September 2015. Plus, there doesn't seem like there's much of a community surrounding it. Which results in fewer resources (guides or libraries) and a higher risk of Go-rest being abandoned one day.
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.