4 ms·
It is good to have many web microframeworks in a language ecosystem. In Python probably there are a hundred of those. Many of those are not picked up by the com
by aalpbalkan 12y ago
It is good to have many web microframeworks in a language ecosystem. In Python probably there are a hundred of those. Many of those are not picked up by the community –a natural selection. Only really a few of those survived. It all depends on you if you are going to choose Revel, Martini, Goji or whatever you want. Today, thousands of apps run on web.py, yet most of the source code is untouched last 3-5 years (https://github.com/webpy/webpy/tree/master/web https://github.com/webpy/webpy/tree/master/web) It's impressive it just works!
Personally, I am looking for frameworks that many people rely on, maintained frequently as needed and works just fine. There could be a +-10% difference on QPS those framework URL routers can handle and render a 'hello world' page.
So this is a nice attempt I would say, looks cleaner than Martini, still supports middlewares. On the other hand, Martini has support to serve static files, logging, panic recovery, which are also good and has a bigger fanboy community around it: https://github.com/go-martini/martini https://github.com/go-martini/martini
- zenazn 12y agoStatic files: http://golang.org/pkg/net/http/#FileServer http://golang.org/pkg/net/http/#FileServer Logging: http://golang.org/pkg/log/ http://golang.org/pkg/log/ Panic recovery: https://godoc.org/github.com/zenazn/goji/web/middleware#Recoverer https://godoc.org/github.com/zenazn/goji/web/middleware#Reco... Not as many fanboys though (yet!)