1. XenForo 1.5.14 中文版——支持中文搜索!现已发布!查看详情
  2. Xenforo 爱好者讨论群:215909318 XenForo专区

新闻 Go 语言 Web 框架 Macaron v1.1.7 发布 下载

本帖由 漂亮的石头2016-08-11 发布。版面名称:软件资讯

  1. 漂亮的石头

    漂亮的石头 版主 管理成员

    注册:
    2012-02-10
    帖子:
    487,979
    赞:
    47
    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)
    Go 语言 Web 框架 Macaron v1.1.7 发布下载地址
     
正在加载...