|
|
%!s(int64=8) %!d(string=hai) anos | |
|---|---|---|
| .. | ||
| LICENSE | %!s(int64=8) %!d(string=hai) anos | |
| README.md | %!s(int64=8) %!d(string=hai) anos | |
| context.go | %!s(int64=8) %!d(string=hai) anos | |
| logger.go | %!s(int64=8) %!d(string=hai) anos | |
| macaron.go | %!s(int64=8) %!d(string=hai) anos | |
| macaron.sublime-project | %!s(int64=8) %!d(string=hai) anos | |
| macaronlogo.png | %!s(int64=8) %!d(string=hai) anos | |
| recovery.go | %!s(int64=8) %!d(string=hai) anos | |
| render.go | %!s(int64=8) %!d(string=hai) anos | |
| response_writer.go | %!s(int64=8) %!d(string=hai) anos | |
| return_handler.go | %!s(int64=8) %!d(string=hai) anos | |
| router.go | %!s(int64=8) %!d(string=hai) anos | |
| static.go | %!s(int64=8) %!d(string=hai) anos | |
| tree.go | %!s(int64=8) %!d(string=hai) anos | |
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.