Macaron 是一个具有高生产力和模块化设计的 Go Web 框架。框架秉承了 Martini 的基本思想,并在此基础上做出高级扩展。
Macaron 主要特性
- 支持子路由的强大路由设计
- 支持灵活多变的路由组合
- 支持无限路由组的无限嵌套
- 支持直接集成现有的服务
- 支持运行时动态设置需要渲染的模板集
- 支持使用内存文件作为静态资源和模板文件
- 支持对模块的轻松接入与解除
- 采用 inject 提供的便利的依赖注入
- 采用更好的路由层和更少的反射来提升执行速度
Go的高生产力和模块化网络框架。(A high productive and modular web framework in Go.)
Macaron 是一个具有高生产力和模块化设计的 Go Web 框架。框架秉承了 Martini 的基本思想,并在此基础上做出高级扩展。
Name With Owner | go-macaron/macaron |
---|---|
Primary Language | Go |
Program language | Go (Language Count: 2) |
Platform | |
License: | Apache License 2.0 |
Created At | 2014-07-10 03:13:30 |
---|---|
Pushed At | 2025-04-19 20:12:31 |
Last Commit At | |
Release Count | 31 |
Last Release Name | v1.5.0 (Posted on ) |
First Release Name | v1 (Posted on ) |
Stargazers Count | 3.5k |
---|---|
Watchers Count | 140 |
Fork Count | 286 |
Commits Count | 288 |
Has Issues Enabled | |
Issues Count | 167 |
Issue Open Count | 7 |
Pull Requests Count | 71 |
Pull Requests Open Count | 1 |
Pull Requests Close Count | 17 |
Has Wiki Enabled | |
---|---|
Is Archived | |
Is Fork | |
Is Locked | |
Is Mirror | |
Is Private |
Package macaron is a high productive and modular web framework in Go.
The minimum requirement of Go is 1.6.
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()
}
Middlewares allow you easily plugin/unplugin features for your Macaron applications.
There are already many middlewares to simplify your work:
This project is under the Apache License, Version 2.0. See the LICENSE file for the full license text.