Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidURL = errors.New("invalid url")
ErrInvalidURL is returned when there's an error during the URL validation (i.e. Validate).
Functions ¶
func Validate ¶
Validate checks if the given URL is valid and complete, following the same rules as url.ParseRequestURI, and verifying that the URL contains a host (e.g. not just a path or query).
If the URL has no protocol, it fallbacks to `http://`, by modifying the value stored in the given string pointer.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.