Documentation ¶
Overview ¶
Package urlx contains URL extensions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveReference ¶
ResolveReference constructs a new URL consisting of the given base URL with the path appended to the given path and the optional query.
For example, given:
URL := "https://api.ooni.io/api/v1" path := "/measurement_meta" rawQuery := "full=true"
This function will return:
result := "https://api.ooni.io/api/v1/measurement_meta?full=true"
This function fails when we cannot parse URL as a *net.URL.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.