Name registers a new route with a name. See Route.Name().
(name string)
| 286 | // Name registers a new route with a name. |
| 287 | // See Route.Name(). |
| 288 | func (r *Router) Name(name string) *Route { |
| 289 | return r.NewRoute().Name(name) |
| 290 | } |
| 291 | |
| 292 | // Handle registers a new route with a matcher for the URL path. |
| 293 | // See Route.Path() and Route.Handler(). |