Documentation ¶
Overview ¶
Package gurl provides useful API for URL handling.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildQuery ¶
Generate URL-encoded query string. See http://php.net/manual/en/function.http-build-query.php.
func Decode ¶
Decode does the inverse transformation of Encode, converting each 3-byte encoded substring of the form "%AB" into the hex-decoded byte 0xAB. It returns an error if any % is not followed by two hexadecimal digits.
func ParseURL ¶
Parse a URL and return its components. -1: all; 1: scheme; 2: host; 4: port; 8: user; 16: pass; 32: path; 64: query; 128: fragment. See http://php.net/manual/en/function.parse-url.php.
func RawDecode ¶
Decode URL-encoded strings. See http://php.net/manual/en/function.rawurldecode.php.
Types ¶
This section is empty.