func (r *Route) Name(name string) {
	if len(name) == 0 {
		panic("route name cannot be empty")
	} else if r.router.namedRoutes[name] != nil {
		panic("route with given name already exists: " + name)
	}
	r.router.namedRoutes[name] = r.leaf
}
func (r *Route) Name(name string) {
	if len(name) == 0 {
		panic("route name cannot be empty")
	} else if r.router.namedRoutes[name] != nil {
		panic("route with given name already exists: " + name)
	}
	r.router.namedRoutes[name] = r.leaf
}
func ( r * Route ) Name ( name string ) { if len ( name ) == 0 { panic ( " " ) } else if r . router . namedRoutes [ name ] != nil { panic ( " " + name ) } r . router . namedRoutes [ name ] = r . leaf }
// Name sets name of route.
Name sets name of route .