An easy-to-use, flexible HTTP web framework based on Gin, inspired by nginx, openresty and beego.
package main
import (
"github.com/opencurve/pigeon"
)
func main() {
server := pigeon.NewHTTPServer()
server.Route("/", func(r *pigeon.Request) bool {
return r.Exit(200, "Hello Pigeon")
})
pigeon.Serve(server)
}
$ go build myserver.go
$ ./myserver start
$ curl 127.0.0.1:8000
Hello Pigeon