MCPcopy
hub / github.com/go-chi/chi / Value

Method Value

tree.go:130–137  ·  tree.go::endpoints.Value
(method methodTyp)

Source from the content-addressed store, hash-verified

128}
129
130func (s endpoints) Value(method methodTyp) *endpoint {
131 mh, ok := s[method]
132 if !ok {
133 mh = &endpoint{}
134 s[method] = mh
135 }
136 return mh
137}
138
139func (n *node) InsertRoute(method methodTyp, pattern string, handler http.Handler) *node {
140 var parent *node

Callers 15

ServeHTTPMethod · 0.80
routeHTTPMethod · 0.80
setEndpointMethod · 0.80
TestMuxBasicFunction · 0.80
TestMuxNestedNotFoundFunction · 0.80
TestMuxWithFunction · 0.80
TestMuxMiddlewareStackFunction · 0.80
bigMuxFunction · 0.80
TestNestedGroupsFunction · 0.80
TestServerBaseContextFunction · 0.80
RouteContextFunction · 0.80

Calls

no outgoing calls

Tested by 8

TestMuxBasicFunction · 0.64
TestMuxNestedNotFoundFunction · 0.64
TestMuxWithFunction · 0.64
TestMuxMiddlewareStackFunction · 0.64
bigMuxFunction · 0.64
TestNestedGroupsFunction · 0.64
TestServerBaseContextFunction · 0.64