|
|
há 6 anos atrás | |
|---|---|---|
| .. | ||
| fixtures | há 6 anos atrás | |
| .gitignore | há 6 anos atrás | |
| LICENSE | há 8 anos atrás | |
| README.md | há 6 anos atrás | |
| context.go | há 6 anos atrás | |
| go.mod | há 6 anos atrás | |
| go.sum | há 6 anos atrás | |
| logger.go | há 8 anos atrás | |
| macaron.go | há 6 anos atrás | |
| macaronlogo.png | há 6 anos atrás | |
| recovery.go | há 9 anos atrás | |
| render.go | há 6 anos atrás | |
| response_writer.go | há 7 anos atrás | |
| return_handler.go | há 9 anos atrás | |
| router.go | há 7 anos atrás | |
| static.go | há 8 anos atrás | |
| tree.go | há 6 anos atrás | |
| util_go17.go | há 8 anos atrás | |
| util_go18.go | há 8 anos atrás | |
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.