When comparing Buffalo vs Go-rest, the Slant community recommends Buffalo for most people. In the question“What are the best web frameworks for Go?” Buffalo is ranked 6th while Go-rest is ranked 14th. The most important reason people chose Buffalo is:
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!
Ranked in these QuestionsQuestion Ranking
Pros
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.
Pro Full web and api only generator for those not looking for full web templating
Pro Multi step Dockerfile included with scratch base for minimal size
Pro Embeded resources in binary for easy reference
Pro Great community channel when help is needed
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.
Cons
Con Mostly a Code Generator rather than a web framework
Con Author of this library has almost zero knowledge of the subject
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.