Versions in this module Expand all Collapse all v1 v1.4.1 Jul 2, 2020 Changes in this version type RouteGroup + func (r *RouteGroup) GetRouter() *Router v1.4.0 Jul 2, 2020 Changes in this version + var MatchedRoutePathParam = "$matchedRoutePath" + var ParamsKey = paramsKey + func CleanPath(p string) string + type Handle func(http.ResponseWriter, *http.Request, Params) + type Param struct + Key string + Value string + type Params []Param + func ParamsFromContext(ctx context.Context) Params + func (ps Params) ByName(name string) string + func (ps Params) MatchedRoutePath() string + type RouteGroup struct + func (r *RouteGroup) DELETE(path string, handle Handle) + func (r *RouteGroup) GET(path string, handle Handle) + func (r *RouteGroup) HEAD(path string, handle Handle) + func (r *RouteGroup) Handle(method, path string, handle Handle) + func (r *RouteGroup) Handler(method, path string, handler http.Handler) + func (r *RouteGroup) HandlerFunc(method, path string, handler http.HandlerFunc) + func (r *RouteGroup) NewGroup(path string) *RouteGroup + func (r *RouteGroup) OPTIONS(path string, handle Handle) + func (r *RouteGroup) PATCH(path string, handle Handle) + func (r *RouteGroup) POST(path string, handle Handle) + func (r *RouteGroup) PUT(path string, handle Handle) + type Router struct + GlobalOPTIONS http.Handler + HandleMethodNotAllowed bool + HandleOPTIONS bool + MethodNotAllowed http.Handler + NotFound http.Handler + PanicHandler func(http.ResponseWriter, *http.Request, interface{}) + RedirectFixedPath bool + RedirectTrailingSlash bool + SaveMatchedRoutePath 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, Params, bool) + func (r *Router) NewGroup(path string) *RouteGroup + 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)