Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrEmptyHostname indicates the input does not contain a hostname ErrEmptyHostname = errors.New("hostname is required") // ErrInvalidHostname indicates the input could not be parsed into a hostname ErrInvalidHostname = errors.New("invalid hostname") )
Functions ¶
func NormalizeHostname ¶
NormalizeHostname extracts the hostname from a URL or raw host input, lowercases it, and removes trailing dots
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.