urls.AbsLangURL
Returns an absolute URL with a language prefix, if any.
urls.AbsURL
Returns an absolute URL.
urls.Anchorize
Returns the given string, sanitized for usage in an HTML id attribute.
urls.JoinPath
Joins the provided elements into a URL string and cleans the result of any ./ or ../ elements. If the argument list is empty, JoinPath returns an empty string.
urls.Parse
Parses a URL into a URL structure.
urls.PathEscape
Returns the given string, replacing all percent-encoded sequences with the corresponding unescaped characters.
urls.PathUnescape
Returns the given string, applying percent-encoding to special characters and reserved delimiters so it can be safely used as a segment within a URL path.
urls.Ref
Returns the absolute URL of the page with the given path, language, and output format.
urls.RelLangURL
Returns a relative URL with a language prefix, if any.
urls.RelRef
Returns the relative URL of the page with the given path, language, and output format.
urls.RelURL
Returns a relative URL.
urls.URLize
Returns the given string, sanitized for usage in a URL.
