MCPcopy
hub / github.com/gorilla/mux / PathPrefix

Method PathPrefix

mux.go:337–339  ·  view source on GitHub ↗

PathPrefix registers a new route with a matcher for the URL path prefix. See Route.PathPrefix().

(tpl string)

Source from the content-addressed store, hash-verified

335// PathPrefix registers a new route with a matcher for the URL path prefix.
336// See Route.PathPrefix().
337func (r *Router) PathPrefix(tpl string) *Route {
338 return r.NewRoute().PathPrefix(tpl)
339}
340
341// Queries registers a new route with a matcher for URL query values.
342// See Route.Queries().

Calls 1

NewRouteMethod · 0.95