Macaron Documentation
  • Welcome
  • Starter Guide
  • Core Concepts
  • Core Services
  • Custom Services
  • Middlewares
    • Routing
    • Templating
    • Gzip
    • Localization
    • Data Binding and Validation
    • Cache
    • Captcha
    • Session
    • Cross-Site Request Forgery
    • Embed Binary Data
    • Serving Multiple Sites
  • FAQs
  • 简体中文
    • 初学者指南
    • 核心概念
    • 核心服务
    • 自定义服务
    • 中间件和辅助模块
      • 路由模块
      • 模板引擎
      • Gzip 压缩
      • 应用本地化
      • 数据绑定与验证
      • 缓存管理(Cache)
      • 验证码服务
      • 会话管理(Session)
      • 跨域请求攻击(CSRF)
      • 嵌入二进制数据
      • 服务多个站点
    • 常见问题
Powered by GitBook
On this page
  • Quick Start
  • Features
  • Use Cases
  • Getting More

Was this helpful?

Welcome

NextStarter Guide

Last updated 5 years ago

Was this helpful?

Package macaron is a high productive and modular web framework in Go. It takes basic ideology of and extends in advance.

The minimum requirement of Go is 1.6.

Quick Start

To install Macaron:

go get gopkg.in/macaron.v1

The very basic usage of Macaron:

package main

import "gopkg.in/macaron.v1"

func main() {
    m := macaron.Classic()
    m.Get("/", func() string {
        return "Hello world!"
    })
    m.Run()
}

Features

  • Powerful routing with suburl.

  • Flexible routes combinations.

  • Unlimited nested group routers.

  • Directly integrate with existing services.

  • Dynamically change template files at runtime.

  • Allow to use in-memory template and static files.

  • Easy to plugin/unplugin features with modular design.

  • Better router layer and less reflection make faster speed.

Use Cases

Getting More

Handy dependency injection powered by .

: A painless self-hosted Git Service

: The open source analytics & monitoring solution for every database

: A modern documentation web server

: Go online API documentation

: A 100% free intelligence marketplace

New to Macaron? Check out the !

that are built for Macaron.

Have any questions? Maybe there are for you!

If you think anything is not clear in the documentation, just !

Martini
inject
Gogs
Grafana
Peach Docs
Go Walker
Intel Stack
Starter Guide
Middlewares
answers
file an issue