Unknwon c37d3f6486 vendor: remove unnecessary sublime files | il y a 7 ans | |
---|---|---|
.. | ||
LICENSE | il y a 7 ans | |
README.md | il y a 7 ans | |
context.go | il y a 7 ans | |
logger.go | il y a 7 ans | |
macaron.go | il y a 7 ans | |
macaron.sublime-project | il y a 7 ans | |
macaronlogo.png | il y a 7 ans | |
recovery.go | il y a 7 ans | |
render.go | il y a 7 ans | |
response_writer.go | il y a 7 ans | |
return_handler.go | il y a 7 ans | |
router.go | il y a 7 ans | |
static.go | il y a 7 ans | |
tree.go | il y a 7 ans |
Package macaron is a high productive and modular web framework in Go.
The minimum requirement of Go is 1.3.
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.