- easy json
- easy router
- easy configuration
- no third deps
- high performance
- few footprint
- cli tool for generate template
- json pre-define
- basic router
package main
import ml "github.com/dayuoba/mulan"
func main() {
server := ml.Server()
router := server.Router()
router.Use(func(c ml.Ctx, next ml.Next) {
// do some stuff
next()
})
router.Get("/", func(c ml.Ctx) {
c.Send(ml.JSON{})
})
server.Listen("8080")
}