|
|
|
@ -23,12 +23,12 @@ type Route struct { |
|
|
|
matchers []matcher |
|
|
|
matchers []matcher |
|
|
|
// Manager for the variables from host and path.
|
|
|
|
// Manager for the variables from host and path.
|
|
|
|
regexp *routeRegexpGroup |
|
|
|
regexp *routeRegexpGroup |
|
|
|
// If true, when the path pattern is "/path/", accessing "/path" will
|
|
|
|
// If true, when the path pattern is "/path/", accessing "/path" will
|
|
|
|
// redirect to the former and vice versa.
|
|
|
|
// redirect to the former and vice versa.
|
|
|
|
strictSlash bool |
|
|
|
strictSlash bool |
|
|
|
// If true, when the path pattern is "/path//to", accessing "/path//to"
|
|
|
|
// If true, when the path pattern is "/path//to", accessing "/path//to"
|
|
|
|
// will not redirect
|
|
|
|
// will not redirect
|
|
|
|
skipClean bool |
|
|
|
skipClean bool |
|
|
|
// If true, this route never matches: it is only used to build URLs.
|
|
|
|
// If true, this route never matches: it is only used to build URLs.
|
|
|
|
buildOnly bool |
|
|
|
buildOnly bool |
|
|
|
// The name used to build URLs.
|
|
|
|
// The name used to build URLs.
|
|
|
|
|