(route Route, err error)
| 436 | func (e *AddRouteError) Unwrap() error { return e.Err } |
| 437 | |
| 438 | func newAddRouteError(route Route, err error) *AddRouteError { |
| 439 | return &AddRouteError{ |
| 440 | Method: route.Method, |
| 441 | Path: route.Path, |
| 442 | Err: err, |
| 443 | } |
| 444 | } |
| 445 | |
| 446 | // Add registers a new route for method and path with matching handler. |
| 447 | func (r *DefaultRouter) Add(route Route) (RouteInfo, error) { |
no outgoing calls
no test coverage detected
searching dependent graphs…