Macaron 是一个具有高生产力和模块化设计的 Go Web 框架。框架秉承了 Martini 的基本思想,并在此基础上做出高级扩展。 API 指南 Go 语言的最低版本要求为 1.3。 主要特性支持子路由的强大路由设计 支持灵活多变的路由组合 支持无限路由组的无限嵌套 支持直接集成现有的服务 支持运行时动态设置需要渲染的模板集 支持使用内存文件作为静态资源和模板文件 支持对模块的轻松接入与解除 采用 inject 提供的便利的依赖注入 采用更好的路由层和更少的反射来提升执行速度
使用案例齐全的中间件支持 MiddlewaresMiddlewares allow you easily plugin/unplugin features for your Macaron applications. There are already many middlewares to simplify your work: render - Go template engine static - Serves static files gzip - Gzip compression to all responses binding - Request data binding and validation i18n - Internationalization and Localization cache - Cache manager session - Session manager csrf - Generates and validates csrf tokens captcha - Captcha service pongo2 - Pongo2 template engine support sockets - WebSockets channels binding bindata - Embed binary data as static and template files toolbox - Health check, pprof, profile and statistic services oauth2 - OAuth 2.0 backend switcher - Multiple-site support method - HTTP method override permissions2 - Cookies, users and permissions renders - Beego-like render engine(Macaron has built-in template engine, this is another option)
|