Versions in this module Expand all Collapse all v0 v0.4.0 Mar 11, 2019 Changes in this version + func CleanPath(p string) string + func ContextRoutePath(ctx context.Context) string + func ContextVars(ctx context.Context) map[string]string + func Vars(r *http.Request) map[string]string + type Handle func(http.ResponseWriter, *http.Request) + type Router struct + HandleMethodNotAllowed bool + HandleOPTIONS bool + MethodNotAllowed http.Handler + NotFound http.Handler + PanicHandler func(http.ResponseWriter, *http.Request, interface{}) + RedirectFixedPath bool + RedirectTrailingSlash bool + func New() *Router + func (r *Router) DELETE(path string, handle Handle) + func (r *Router) GET(path string, handle Handle) + func (r *Router) HEAD(path string, handle Handle) + func (r *Router) Handle(method, path string, handle Handle) + func (r *Router) Handler(method, path string, handler http.Handler) + func (r *Router) HandlerFunc(method, path string, handler http.HandlerFunc) + func (r *Router) Lookup(method, path string) (Handle, map[string]string, bool) + func (r *Router) OPTIONS(path string, handle Handle) + func (r *Router) PATCH(path string, handle Handle) + func (r *Router) POST(path string, handle Handle) + func (r *Router) PUT(path string, handle Handle) + func (r *Router) ServeFiles(path string, root http.FileSystem) + func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request)