Clone creates copy of RouteInfo
()
| 63 | |
| 64 | // Clone creates copy of RouteInfo |
| 65 | func (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. |
| 75 | func (r RouteInfo) Reverse(pathValues ...any) string { |
no outgoing calls