Gocraft/web vs Goji
When comparing Gocraft/web vs Goji, the Slant community recommends Goji for most people. In the question“What are the best web frameworks for Go?” Goji is ranked 10th while Gocraft/web is ranked 16th. The most important reason people chose Goji is:
Goji is an abstraction layer over the standard Go library (which has support for HTTP) and added Einhorn support. There's probably very little you can do with Goji that you can't do with the standard library and a bit of elbow grease. This makes Goji an extremely lightweight and fast framework.
Ranked in these QuestionsQuestion Ranking
Pros
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
Pro Great performance
Goji is an abstraction layer over the standard Go library (which has support for HTTP) and added Einhorn support. There's probably very little you can do with Goji that you can't do with the standard library and a bit of elbow grease.
This makes Goji an extremely lightweight and fast framework.
Pro Socket manager integration
Goji integrates with Einhorn, which is a language agnostic socket manager. Making it possible to have websocket support in Goji.
Cons
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.
Con Doesn't add a lot of functionality on top of the standard library
Most of the tasks that Goji 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 Goji development being abandoned one day.