# 简体中文

Macaron 是一个具有高生产力和模块化设计的 Go Web 框架。框架秉承了 [Martini](https://github.com/go-martini/martini) 的基本思想，并在此基础上做出高级扩展。

{% hint style="info" %}
Go 语言的最低版本要求为 **1.6**。
{% endhint %}

## 尝鲜体验

安装 Macaron：

```
go get gopkg.in/macaron.v1
```

Macaron 的初级用法：

```go
package main

import "gopkg.in/macaron.v1"

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

## 主要特性

* 支持子路由的强大路由设计
* 支持灵活多变的路由组合
* 支持无限路由组的无限嵌套
* 支持直接集成现有的服务
* 支持运行时动态设置需要渲染的模板集
* 支持使用内存文件作为静态资源和模板文件
* 支持对模块的轻松接入与解除
* 采用 [inject](https://github.com/codegangsta/inject) 提供的便利的依赖注入
* 采用更好的路由层和更少的反射来提升执行速度

## 使用案例

* [Gogs](https://gogs.io): A painless self-hosted Git Service
* [Grafana](http://grafana.org/): The open source analytics & monitoring solution for every database
* [Peach Docs](https://peachdocs.org): A modern documentation web server
* [Go Walker](https://gowalker.org): Go online API documentation
* [Intel Stack](https://intelstack.com/): A 100% free intelligence marketplace

## 快速导航

* 刚开始了解 Macaron 的话，不妨从 [初学者指南](/zh-cn/starter_guide.md) 看起。
* Macaron 已经拥有许多 [中间件和辅助模块](/zh-cn/middlewares.md) 来简化您的工作。
* 如果您有任何问题，建议先从 [常见问题](/zh-cn/faqs.md) 中寻找答案。
* 如果您觉得文档有描述得不够清楚之处，请通过 [提交工单](https://github.com/go-macaron/docs/issues) 告知我们。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://go-macaron.com/zh-cn.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
