Documentation
¶
Index ¶
Constants ¶
View Source
const (
// PathSeparator is the URL paths separator character
PathSeparator = '/'
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type URL ¶
type URL struct {
*url.URL
// ResourcePath is the URL Path without the resource
// name segment
ResourcePath string
// The resource name part of the path.
// If the url is for a resource with extension,
// such as .html, it is not part of this string.
// See Extension for the extension segment.
ResourceName string
// The resource extension part of the path
// identified as the last segment after resource
// name, starting with a dot (.).
// May be nil (empty string) if the url resource
// does not specify extension.
Extension string
}
URL extends the standard url.URL struct with additional fields
Click to show internal directories.
Click to hide internal directories.