Versions in this module Expand all Collapse all v0 v0.1.0 Nov 2, 2017 Changes in this version + const AppendTrailingSlashes + const IgnoreTrailingSlashes + const RemoveTrailingSlashes + const StrictTrailingSlashes + func Params(r *http.Request) map[string]string + type Middleware func(next http.Handler) http.Handler + type ParamsKey struct + type Parser struct + func NewParser() Parser + func NewParserWithReg(reg *regexp.Regexp) Parser + func (p Parser) Parse(pattern string) (regexp string, params []string, hasTrailingSlashes bool, err error) + type ParserInterface interface + Parse func(pattern string) (regexp string, params []string, hasTrailingSlashes bool, err error) + type Router struct + MethodNotAllowedHandler func(w http.ResponseWriter, req *http.Request, methods []string) + Middleware []Middleware + NotFoundHandler http.Handler + OptionsHandler func(w http.ResponseWriter, req *http.Request, methods []string) + PanicHandler func(w http.ResponseWriter, req *http.Request, rcv interface{}) + TrailingSlashesPolicy int8 + func New() *Router + func NewWithParser(parser ParserInterface) *Router + func (r *Router) Delete(pattern string, handler http.HandlerFunc, middleware ...Middleware) + func (r *Router) Get(pattern string, handler http.HandlerFunc, middleware ...Middleware) + func (r *Router) Group(prefix string) *Router + func (r *Router) Handle(method, pattern string, handler http.HandlerFunc, middleware ...Middleware) + func (r *Router) Post(pattern string, handler http.HandlerFunc, middleware ...Middleware) + func (r *Router) Prepare() + func (r *Router) Put(pattern string, handler http.HandlerFunc, middleware ...Middleware) + func (r *Router) ServeFiles(pattern, root string, middleware ...Middleware) + func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request)