Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Domain ¶
Domain returns whether d is valid domain.
This function returns false for "." (root domain).
func DomainPart ¶
DomainPart returns whether d is valid domain part (eg.: subdomain part or Second Level Domain).
Domain d can be up to 63 character long, can include a-z, A-Z, 0-9 and "-". The string must not starts and ends with a hyphen ("-") and two consecutive hyphen is not allowed.
Types ¶
Click to show internal directories.
Click to hide internal directories.