Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/opencurve/pigeon

An easy-to-use, flexible HTTP web framework based on Gin, inspired by nginx, openresty and beego.
https://github.com/opencurve/pigeon

Last synced: about 2 months ago
JSON representation

An easy-to-use, flexible HTTP web framework based on Gin, inspired by nginx, openresty and beego.

Awesome Lists containing this project

README

        

Pigeon
===

An easy-to-use, flexible HTTP web framework based on [Gin][gin],
inspired by [nginx][nginx], [openresty][openresty] and [beego][beego].

Quick Start
---

### create file `myserver.go`

```go
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)
}
```

### build and run
```shell
$ go build myserver.go
$ ./myserver start
```

### access web server in default address
```shell
$ curl 127.0.0.1:8000
Hello Pigeon
```

[gin]: https://github.com/gin-gonic/gin
[nginx]: https://github.com/nginx/nginx
[openresty]: https://github.com/openresty
[beego]: https://github.com/beego/beego