Documentation ¶
Index ¶
- Constants
- func AddressIsValidFull(address string) (bool, string, string)
- func AddressIsValidFullFuzzy(address string, excludeExampleOrTest bool, excludeNumericTestAddress bool) bool
- func DomainIsExampleOrTest(address string) bool
- func DomainIsValidSingleChar(domain string) bool
- func HostnameIsValid(hostname string) bool
- func ParseAddressSpec(addrSpec string) (string, string, error)
- type MailAddress
Constants ¶
View Source
const ( EmailFull string = `^(?i)([^\@]+)\@([^\@]+\.[a-z]+)+$` EmailFullNumeric string = `(?i)^([0-9]+|test)\@[0-9]+\.[a-z]+$` EmailDomainExampleOrTest string = `(?i)[\@.](example|test)\.[a-z]+$` DomainSingleCharValid string = `(?i)^([qxz]\.com|[iq]\.net|[cvwx]\.org|)$` )
Variables ¶
This section is empty.
Functions ¶
func AddressIsValidFullFuzzy ¶
func DomainIsExampleOrTest ¶
func DomainIsValidSingleChar ¶
func HostnameIsValid ¶
Types ¶
type MailAddress ¶
func ParseAddress ¶
func ParseAddress(address string) (MailAddress, error)
Click to show internal directories.
Click to hide internal directories.