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

Method storeRouteInfo

router.go:538–546  ·  view source on GitHub ↗
(ri RouteInfo)

Source from the content-addressed store, hash-verified

536}
537
538func (r *DefaultRouter) storeRouteInfo(ri RouteInfo) {
539 for i, rr := range r.routes {
540 if ri.Method == rr.Method && ri.Path == rr.Path {
541 r.routes[i] = ri
542 return
543 }
544 }
545 r.routes = append(r.routes, ri)
546}
547
548func (r *DefaultRouter) insert(t kind, path string, method string, ri routeMethod) {
549 if len(ri.Parameters) > r.maxPathParamsLength {

Callers 1

AddMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected