MCPcopy Index your code
hub / github.com/labstack/echo / InitializeRoute

Method InitializeRoute

context.go:313–317  ·  view source on GitHub ↗

InitializeRoute sets the route related variables of this request to the context.

(ri *RouteInfo, pathValues *PathValues)

Source from the content-addressed store, hash-verified

311
312// InitializeRoute sets the route related variables of this request to the context.
313func (c *Context) InitializeRoute(ri *RouteInfo, pathValues *PathValues) {
314 c.route = ri
315 c.path = ri.Path
316 c.setPathValues(pathValues)
317}
318
319func (c *Context) setPathValues(pv *PathValues) {
320 // Router accesses c.pathValues by index and may resize it to full capacity during routing

Callers 3

TestBindParamFunction · 0.95
ToContextRecorderMethod · 0.95
RouteMethod · 0.80

Calls 1

setPathValuesMethod · 0.95

Tested by 1

TestBindParamFunction · 0.76