func (r *Route) Name(name string) *Route {
	r.name = name
	r.group.router.routes[name] = r
	return r
}
Name sets the name of the route.
This method will update the registration of the route in the router as well.
package routing
import (
	"fmt"
	"net/url"
	"strings"
)
type Route struct {
	group      *RouteGroup
	name, path string
	template   string
}
func newRoute(path string, group *RouteGroup) *Route {
	path = group.prefix + path
	name := path
	if strings.HasSuffix(path, "*") {
		path = path[:len(path)-1] + "<:.*>"
	}
	route := &Route{
		group:    group,
		name:     name,
		path:     path,
		template: buildURLTemplate(path),
	}
	group.router.routes[name] = route
	return route
}