gouter
gouter is simple golang routing library
Requirement
Go 1.8
Installation
go get github.com/kpango/gouter
Example
route := gouter.New().
AddRoute("index", "/", http.MethodGet, handler.Index).
AddRoute("protogen", "/proto", http.MethodPost, handler.ProtoGen).
GetRouter()
http.ListenAndServe("port", route)
Contribution
- Fork it ( https://github.com/kpango/gouter/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
Author
kpango
LICENSE
gouter released under MIT license, refer LICENSE file.