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

Method Path

mux.go:331–333  ·  mux.go::Router.Path

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

(tpl string)

Source from the content-addressed store, hash-verified

329// Path registers a new route with a matcher for the URL path.
330// See Route.Path().
331func (r *Router) Path(tpl string) *Route {
332 return r.NewRoute().Path(tpl)
333}
334
335// PathPrefix registers a new route with a matcher for the URL path prefix.
336// See Route.PathPrefix().

Callers 15

TestWalkSingleDepthFunction · 0.95
TestWalkNestedFunction · 0.95
TestWalkSubroutersFunction · 0.95
TestWalkErrorRouteFunction · 0.95
TestWalkErrorMatcherFunction · 0.95
TestWalkErrorHandlerFunction · 0.95
TestSubrouterMatchingFunction · 0.95
TestSubrouterNotFoundFunction · 0.95
HandleMethod · 0.45
HandleFuncMethod · 0.45
TestPathFunction · 0.45
TestSchemeHostPathFunction · 0.45

Calls 1

NewRouteMethod · 0.95

Tested by 15

TestWalkSingleDepthFunction · 0.76
TestWalkNestedFunction · 0.76
TestWalkSubroutersFunction · 0.76
TestWalkErrorRouteFunction · 0.76
TestWalkErrorMatcherFunction · 0.76
TestWalkErrorHandlerFunction · 0.76
TestSubrouterMatchingFunction · 0.76
TestSubrouterNotFoundFunction · 0.76
TestPathFunction · 0.36
TestSchemeHostPathFunction · 0.36
TestQueriesFunction · 0.36
TestBuildVarsFuncFunction · 0.36