Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 756 Bytes

README.md

File metadata and controls

44 lines (34 loc) · 756 Bytes

Pigeon

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

Quick Start

create file myserver.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

$ go build myserver.go
$ ./myserver start

access web server in default address

$ curl 127.0.0.1:8000
Hello Pigeon