MCPcopy
hub / github.com/labstack/echo / Clone

Method Clone

route.go:108–114  ·  view source on GitHub ↗

Clone creates copy of Routes

()

Source from the content-addressed store, hash-verified

106
107// Clone creates copy of Routes
108func (r Routes) Clone() Routes {
109 result := make(Routes, len(r))
110 for i, route := range r {
111 result[i] = route.Clone()
112 }
113 return result
114}
115
116// Reverse reverses route to URL string by replacing path parameters with given params values.
117func (r Routes) Reverse(routeName string, pathValues ...any) (string, error) {

Callers 6

TestRoutes_CloneFunction · 0.45
RoutesMethod · 0.45
RouteInfoMethod · 0.45
createSimpleProxyServerFunction · 0.45

Calls

no outgoing calls

Tested by 4

TestRoutes_CloneFunction · 0.36
createSimpleProxyServerFunction · 0.36