Skip to content
/ router Public

A middleware that provides high performance HTTP request routing.

License

Notifications You must be signed in to change notification settings

rkusa/router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

router

A middleware that works well (but not exclusively) with rkusa/web and provides high performance HTTP request routing using httptreemux.

Build Status GoDoc

Example

routes := router.New()

routes.GET("/users/:id", func(rw http.ResponseWriter, r *http.Request) {
  id := router.Param(r, "id")
  // ...
})

app.Use(routes.Middleware())

License

MIT

About

A middleware that provides high performance HTTP request routing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published