Skip to content

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

License

Notifications You must be signed in to change notification settings

opencurve/pigeon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •