Categorygithub.com/chanced/uri
modulepackage
0.3.4
Repository: https://github.com/chanced/uri.git
Documentation: pkg.go.dev

# README

uri

Go Reference Latest Version Build Status

uri is a copy of net/url 1.19 except URI implements encoding.TextUnmarshaler and encoding.TextMarshaler.

Another notable change:

If URI is empty, the String method returns "#" rather than an empty string.

License

Go License

# Functions

JoinPath returns a URI string with the provided path elements joined to the existing path of base and the resulting path cleaned of any ./ or ../ elements.
MustParse parses a raw uri into a URI structure and panics there are errors.
Parse parses a raw uri into a URI structure.
ParseQuery parses the URI-encoded query string and returns a map listing the values specified for each key.
ParseRequestURI parses a raw uri into a URI structure.
PathEscape escapes the string so it can be safely placed inside a URI path segment, replacing special characters (including /) with %XX sequences as needed.
PathUnescape does the inverse transformation of PathEscape, converting each 3-byte encoded substring of the form "%AB" into the hex-decoded byte 0xAB.
QueryEscape escapes the string so it can be safely placed inside a URI query.
QueryUnescape does the inverse transformation of QueryEscape, converting each 3-byte encoded substring of the form "%AB" into the hex-decoded byte 0xAB.
User returns a Userinfo containing the provided username and no password set.
UserPassword returns a Userinfo containing the provided username and password.

# Structs

Error reports an error and the operation and URI that caused it.
A URI represents a parsed URI (technically, a URI reference).
The Userinfo type is an immutable encapsulation of username and password details for a URI.

# Type aliases

No description provided by the author
No description provided by the author
Values maps a string key to a list of values.