Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // HostnameRegex is the regex for valid hostnames. HostnameRegex = regexp.MustCompile(`^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$`) // IPV4Regex is the regex for valid IPv4 addresses. IPV4Regex = regexp.MustCompile(`^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$`) )
Functions ¶
func CleanAddress ¶
CleanAddress cleans the input address before returning it.
func IsValidAddress ¶
IsValidAddress returns a boolean indicating whether the specified address is valid.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.