设为首页收藏本站

LUPA开源社区

 找回密码
 注册
文章 帖子 博客
LUPA开源社区 首页 业界资讯 软件追踪 查看内容

Go语言Web框架Macaron v1.1.7发布

2016-8-11 21:25| 发布者: joejoe0332| 查看: 977| 评论: 0|原作者: oschina|来自: oschina

摘要: Macaron 是一个具有高生产力和模块化设计的 Go Web 框架。框架秉承了Martini的基本思想,并在此基础上做出高级扩展。API 指南Go 语言的最低版本要求为1.3。主要特性支持子路由的强大路由设计支持灵活多变的路由组合 ...

 Macaron 是一个具有高生产力和模块化设计的 Go Web 框架。框架秉承了 Martini 的基本思想,并在此基础上做出高级扩展。

API 指南

Go 语言的最低版本要求为 1.3。

主要特性

  • 支持子路由的强大路由设计

  • 支持灵活多变的路由组合

  • 支持无限路由组的无限嵌套

  • 支持直接集成现有的服务

  • 支持运行时动态设置需要渲染的模板集

  • 支持使用内存文件作为静态资源和模板文件

  • 支持对模块的轻松接入与解除

  • 采用 inject 提供的便利的依赖注入

  • 采用更好的路由层和更少的反射来提升执行速度

使用案例

齐全的中间件支持

Middlewares

Middlewares 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)


酷毙

雷人

鲜花

鸡蛋

漂亮
  • 快毕业了,没工作经验,
    找份工作好难啊?
    赶紧去人才芯片公司磨练吧!!

最新评论

关于LUPA|人才芯片工程|人才招聘|LUPA认证|LUPA教育|LUPA开源社区 ( 浙B2-20090187 浙公网安备 33010602006705号   

返回顶部