Versions in this module Expand all Collapse all v0 v0.1.0 Dec 1, 2014 Changes in this version + func Vars(r *http.Request) map[string]string + type MatcherFunc func(*http.Request, *RouteMatch) bool + func (m MatcherFunc) Match(r *http.Request, match *RouteMatch) bool + type Route struct + func CurrentRoute(r *http.Request) *Route + func (r *Route) BuildOnly() *Route + func (r *Route) GetError() error + func (r *Route) GetHandler() http.Handler + func (r *Route) GetName() string + func (r *Route) Handler(handler http.Handler) *Route + func (r *Route) HandlerFunc(f func(http.ResponseWriter, *http.Request)) *Route + func (r *Route) Headers(pairs ...string) *Route + func (r *Route) Host(tpl string) *Route + func (r *Route) Match(req *http.Request, match *RouteMatch) bool + func (r *Route) MatcherFunc(f MatcherFunc) *Route + func (r *Route) Methods(methods ...string) *Route + func (r *Route) Name(name string) *Route + func (r *Route) Path(tpl string) *Route + func (r *Route) PathPrefix(tpl string) *Route + func (r *Route) Queries(pairs ...string) *Route + func (r *Route) Schemes(schemes ...string) *Route + func (r *Route) Subrouter() *Router + func (r *Route) URL(pairs ...string) (*url.URL, error) + func (r *Route) URLHost(pairs ...string) (*url.URL, error) + func (r *Route) URLPath(pairs ...string) (*url.URL, error) + type RouteMatch struct + Handler http.Handler + Route *Route + Vars map[string]string + type Router struct + KeepContext bool + NotFoundHandler http.Handler + func NewRouter() *Router + func (r *Router) Get(name string) *Route + func (r *Router) GetRoute(name string) *Route + func (r *Router) Handle(path string, handler http.Handler) *Route + func (r *Router) HandleFunc(path string, f func(http.ResponseWriter, *http.Request)) *Route + func (r *Router) Headers(pairs ...string) *Route + func (r *Router) Host(tpl string) *Route + func (r *Router) Match(req *http.Request, match *RouteMatch) bool + func (r *Router) MatcherFunc(f MatcherFunc) *Route + func (r *Router) Methods(methods ...string) *Route + func (r *Router) NewRoute() *Route + func (r *Router) Path(tpl string) *Route + func (r *Router) PathPrefix(tpl string) *Route + func (r *Router) Queries(pairs ...string) *Route + func (r *Router) Schemes(schemes ...string) *Route + func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request) + func (r *Router) StrictSlash(value bool) *Router v0.0.0 Nov 27, 2014