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

Method Name

mux.go:288–290  ·  view source on GitHub ↗

Name registers a new route with a name. See Route.Name().

(name string)

Source from the content-addressed store, hash-verified

286// Name registers a new route with a name.
287// See Route.Name().
288func (r *Router) Name(name string) *Route {
289 return r.NewRoute().Name(name)
290}
291
292// Handle registers a new route with a matcher for the URL path.
293// See Route.Path() and Route.Handler().

Callers 8

TestNamedRoutesFunction · 0.45
TestNameMultipleCallsFunction · 0.45
Test301RedirectFunction · 0.45
TestSkipCleanFunction · 0.45
TestSubrouterHeaderFunction · 0.45
TestUrlBuildingFunction · 0.45
TestMatchedRouteNameFunction · 0.45
TestSubRoutingFunction · 0.45

Calls 1

NewRouteMethod · 0.95

Tested by 8

TestNamedRoutesFunction · 0.36
TestNameMultipleCallsFunction · 0.36
Test301RedirectFunction · 0.36
TestSkipCleanFunction · 0.36
TestSubrouterHeaderFunction · 0.36
TestUrlBuildingFunction · 0.36
TestMatchedRouteNameFunction · 0.36
TestSubRoutingFunction · 0.36