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

Method Get

mux.go:216–218  ·  view source on GitHub ↗

Get returns a route registered with the given name.

(name string)

Source from the content-addressed store, hash-verified

214
215// Get returns a route registered with the given name.
216func (r *Router) Get(name string) *Route {
217 return r.namedRoutes[name]
218}
219
220// GetRoute returns a route registered with the given name. This method
221// was renamed to Get() and remains here for backwards compatibility.

Callers 10

TestNamedRoutesFunction · 0.95
TestUrlBuildingFunction · 0.95
TestSubRoutingFunction · 0.95
TestCORSMethodMiddlewareFunction · 0.80
testMethodsSubrouterFunction · 0.80
TestSchemeMatchersFunction · 0.80
TestRedirectSlashFunction · 0.80
MiddlewareMethod · 0.80

Calls

no outgoing calls

Tested by 10

TestNamedRoutesFunction · 0.76
TestUrlBuildingFunction · 0.76
TestSubRoutingFunction · 0.76
TestCORSMethodMiddlewareFunction · 0.64
testMethodsSubrouterFunction · 0.64
TestSchemeMatchersFunction · 0.64
TestRedirectSlashFunction · 0.64
MiddlewareMethod · 0.64