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.Decode
Returns the given URL-encoded string, decoded for display.
urls.Encode
Returns the given string encoded so it can be safely placed inside a URL query.
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.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.