vox
vox copied to clipboard
Simple and lightweight Go web framework inspired by koa
currently we could only apply global middlewares, in complicated applications, we might need to apply middlewares for different business, assume there are routes (`/foo` and '/bar') and middlewares (`foo` and...
We need a api like `vox.Response#Render(templateName string, templateData interface{} )`, than can render HTML templates, and users can register their template engines line `html/template` or mustache or handlebars or some...
Just like koa.
It should parse the request body with it's content type in the header. And users can let it parse body to an map / slice / custom structs.
It's cool to have a builtin cookie based session middleware, for quick start for new project. Maybe flask's implementation is a good example.