Versions in this module Expand all Collapse all v1 v1.1.0 Apr 21, 2015 Changes in this version + func CleanPath(p string) string + type Handle func(http.ResponseWriter, *http.Request, Params) + type Param struct + Key string + Value string + type Params []Param + func (ps Params) ByName(name string) string + type Router struct + HandleMethodNotAllowed bool + MethodNotAllowed http.HandlerFunc + NotFound http.HandlerFunc + 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, Params, 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)