|
|
pirms 6 gadiem | |
|---|---|---|
| .. | ||
| .drone.yml | pirms 6 gadiem | |
| .gitignore | pirms 6 gadiem | |
| LICENSE | pirms 6 gadiem | |
| README.md | pirms 6 gadiem | |
| context.go | pirms 6 gadiem | |
| go.mod | pirms 6 gadiem | |
| go.sum | pirms 6 gadiem | |
| logger.go | pirms 6 gadiem | |
| macaron.go | pirms 6 gadiem | |
| macaronlogo.png | pirms 6 gadiem | |
| recovery.go | pirms 6 gadiem | |
| render.go | pirms 6 gadiem | |
| response_writer.go | pirms 6 gadiem | |
| return_handler.go | pirms 6 gadiem | |
| router.go | pirms 6 gadiem | |
| static.go | pirms 6 gadiem | |
| tree.go | pirms 6 gadiem | |
| util_go17.go | pirms 6 gadiem | |
| util_go18.go | pirms 6 gadiem | |
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.