Documentation ¶
Index ¶
- Constants
- func AnySubdomainRegex() *regexp.Regexp
- func AnySubdomainRegexString() string
- func CopyString(src string) string
- func IPv6NibbleFormat(ip string) string
- func RemoveAsteriskLabel(s string) string
- func ReverseIP(ip string) string
- func ReverseString(s string) string
- func SubdomainRegex(domain string) *regexp.Regexp
- func SubdomainRegexString(domain string) string
Constants ¶
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 AnySubdomainRegexString ¶
func AnySubdomainRegexString() string
AnySubdomainRegexString returns a regular expression string to match any DNS subdomain name.
func CopyString ¶
CopyString return a new string variable with the same value as the parameter.
func IPv6NibbleFormat ¶
IPv6NibbleFormat expects an IPv6 address in the ip parameter and returns the address in nibble format.
func RemoveAsteriskLabel ¶
RemoveAsteriskLabel returns the provided DNS name with all asterisk labels removed.
func ReverseIP ¶
ReverseIP returns an IP address that is the ip parameter with the numbers reversed.
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.
func SubdomainRegexString ¶
SubdomainRegexString returns a regular expression string that matchs subdomain names ending with the domain provided by the parameter.
Types ¶
This section is empty.