Tamal Saha 171b359877 Use gitea forked macaron (#7933) | 5 years ago | |
---|---|---|
.. | ||
.drone.yml | 5 years ago | |
.gitignore | 5 years ago | |
LICENSE | 5 years ago | |
README.md | 5 years ago | |
context.go | 5 years ago | |
go.mod | 5 years ago | |
go.sum | 5 years ago | |
logger.go | 5 years ago | |
macaron.go | 5 years ago | |
macaronlogo.png | 5 years ago | |
recovery.go | 5 years ago | |
render.go | 5 years ago | |
response_writer.go | 5 years ago | |
return_handler.go | 5 years ago | |
router.go | 5 years ago | |
static.go | 5 years ago | |
tree.go | 5 years ago | |
util_go17.go | 5 years ago | |
util_go18.go | 5 years ago |
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 gitea.com/macaron/macaron
The very basic usage of Macaron:
package main
import "gitea.com/macaron/macaron"
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.