Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHostname ¶
func Parse ¶
Parse parses and validates a given serverURL to an url.URL, and returns an error if validation failed. Querystring parameters are omitted in the resulting URL, because they are not used in the helper.
If serverURL does not have a valid scheme, `//` is used as scheme before parsing. This prevents the hostname being used as path, and the credentials being stored without host.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.