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

Method Clone

route.go:65–72  ·  view source on GitHub ↗

Clone creates copy of RouteInfo

()

Source from the content-addressed store, hash-verified

63
64// Clone creates copy of RouteInfo
65func (r RouteInfo) Clone() RouteInfo {
66 return RouteInfo{
67 Name: r.Name,
68 Method: r.Method,
69 Path: r.Path,
70 Parameters: append([]string(nil), r.Parameters...),
71 }
72}
73
74// Reverse reverses route to URL string by replacing path parameters with given params values.
75func (r RouteInfo) Reverse(pathValues ...any) string {

Callers 1

TestRouteInfoFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestRouteInfoFunction · 0.76