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

Function NewRouteContext

context.go:33–35  ·  view source on GitHub ↗

NewRouteContext returns a new routing Context object.

()

Source from the content-addressed store, hash-verified

31
32// NewRouteContext returns a new routing Context object.
33func NewRouteContext() *Context {
34 return &Context{}
35}
36
37var (
38 // RouteCtxKey is the context.Context key to store the request context.

Callers 13

NewMuxFunction · 0.85
TestMuxSubroutesFunction · 0.85
TestSingleHandlerFunction · 0.85
TestMuxMatchFunction · 0.85
TestMuxMatch_HasBasePathFunction · 0.85
TestMuxFindFunction · 0.85
TestTreeFunction · 0.85
TestTreeMoarFunction · 0.85
TestTreeRegexpFunction · 0.85
TestTreeRegexpRecursiveFunction · 0.85

Calls

no outgoing calls

Tested by 12

TestMuxSubroutesFunction · 0.68
TestSingleHandlerFunction · 0.68
TestMuxMatchFunction · 0.68
TestMuxMatch_HasBasePathFunction · 0.68
TestMuxFindFunction · 0.68
TestTreeFunction · 0.68
TestTreeMoarFunction · 0.68
TestTreeRegexpFunction · 0.68
TestTreeRegexpRecursiveFunction · 0.68
BenchmarkTreeGetFunction · 0.68