Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/opencurve/pigeon
- Owner: opencurve
- License: apache-2.0
- Created: 2023-04-04T01:53:07.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-07T07:05:43.000Z (about 1 year ago)
- Last Synced: 2023-12-07T08:24:28.617Z (about 1 year ago)
- Language: Go
- Size: 146 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 mainimport (
"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