Unknwon c82ac420fc vendor: update | 6 gadi atpakaļ | |
---|---|---|
.. | ||
LICENSE | 6 gadi atpakaļ | |
README.md | 6 gadi atpakaļ | |
context.go | 6 gadi atpakaļ | |
logger.go | 7 gadi atpakaļ | |
macaron.go | 6 gadi atpakaļ | |
macaronlogo.png | 7 gadi atpakaļ | |
recovery.go | 7 gadi atpakaļ | |
render.go | 7 gadi atpakaļ | |
response_writer.go | 6 gadi atpakaļ | |
return_handler.go | 7 gadi atpakaļ | |
router.go | 6 gadi atpakaļ | |
static.go | 7 gadi atpakaļ | |
tree.go | 6 gadi atpakaļ | |
util_go17.go | 6 gadi atpakaļ | |
util_go18.go | 6 gadi atpakaļ |
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.