Documentation ¶
Index ¶
Constants ¶
View Source
const SUBRE = "(([a-zA-Z0-9]{1}|[_a-zA-Z0-9]{1}[_a-zA-Z0-9-]{0,61}[a-zA-Z0-9]{1})[.]{1})+"
SUBRE is a regular expression that will match on all subdomains once the domain is appended.
Variables ¶
This section is empty.
Functions ¶
func AnySubdomainRegex ¶
AnySubdomainRegex returns a Regexp object initialized to match any DNS subdomain name.
func CopyString ¶
CopyString return a new string variable with the same value as the parameter.
func RemoveAsteriskLabel ¶
RemoveAsteriskLabel returns the provided DNS name with all asterisk labels removed.
func ReverseString ¶
ReverseString returns the characters of the argument string in reverse order.
func SubdomainRegex ¶
SubdomainRegex returns a Regexp object initialized to match subdomain names that end with the domain provided by the parameter.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.