Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailResult ¶
type EmailResult struct {
Valid bool
Error string
Domain string // The domain part of the email (if valid format)
}
EmailResult holds the result of email validation.
func Email ¶
func Email(value string, checkMX bool) EmailResult
Email validates an email address. If checkMX is true, it verifies the domain has MX records.
Click to show internal directories.
Click to hide internal directories.