When comparing Go-rest vs Gocraft/web, the Slant community recommends Go-rest for most people. In the question“What are the best web frameworks for Go?” Go-rest is ranked 14th while Gocraft/web is ranked 16th. The most important reason people chose Go-rest is:
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.
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 High performance
gocraft/web is a minimalistic web framework which adds routing to the net/http
package from the standard library. Even so, web.go tries to compensate for the small abstraction that it offers by structuring routes in a tree instead of a list. As such, it's a very fast framework which makes it a good choice in applications where good performance is key.
Pro Routing supports parameters and regex
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 Doesn't add a lot of functionality on top of the standard library
Most of the tasks that gocraft/web 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 web.co development being abandoned one day.