Tamal Saha 171b359877 Use gitea forked macaron (#7933) | il y a 5 ans | |
---|---|---|
.. | ||
.drone.yml | il y a 5 ans | |
.gitignore | il y a 5 ans | |
LICENSE | il y a 5 ans | |
README.md | il y a 5 ans | |
context.go | il y a 5 ans | |
go.mod | il y a 5 ans | |
go.sum | il y a 5 ans | |
logger.go | il y a 5 ans | |
macaron.go | il y a 5 ans | |
macaronlogo.png | il y a 5 ans | |
recovery.go | il y a 5 ans | |
render.go | il y a 5 ans | |
response_writer.go | il y a 5 ans | |
return_handler.go | il y a 5 ans | |
router.go | il y a 5 ans | |
static.go | il y a 5 ans | |
tree.go | il y a 5 ans | |
util_go17.go | il y a 5 ans | |
util_go18.go | il y a 5 ans |
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.