Versions in this module Expand all Collapse all v1 v1.0.0 Jun 3, 2020 Changes in this version + type Middleware func(w http.ResponseWriter, r *http.Request, next http.HandlerFunc) + type Router struct + func NewRouter() Router + func (router *Router) AddMiddleware(middlewares ...Middleware) + func (router *Router) BuildHandler() http.Handler + func (router *Router) Delete(path string, handler http.Handler, middlewares ...Middleware) + func (router *Router) Get(path string, handler http.Handler, middlewares ...Middleware) + func (router *Router) Handle(method string, path string, handler http.Handler, middlewares ...Middleware) + func (router *Router) ListenAndServe(addr string) error + func (router *Router) Match(req *http.Request) bool + func (router *Router) Patch(path string, handler http.Handler, middlewares ...Middleware) + func (router *Router) Post(path string, handler http.Handler, middlewares ...Middleware) + func (router *Router) Put(path string, handler http.Handler, middlewares ...Middleware) + func (router *Router) Shutdown(ctx context.Context) error