Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Enforce ¶ added in v1.0.1
type Enforce struct { // Email enforces email check and rejects empty emails Email bool // Domain enforces domain check and rejects empty domains Domain bool // SMTP enforces SMTP check (email actually exists on mail server) and rejects non-existing emails SMTP bool // SPF enforces SPF record check (sender allowed to use that email and send emails) and rejects unathorized emails SPF bool // MX enforces MX records check on email's mail server MX bool }
Enforce checks
type V ¶
type V struct {
// contains filtered or unexported fields
}
V is a validator implementation
func (*V) DomainString ¶
DomainString checks if domain string / value is valid using string checks like length and regexp
Click to show internal directories.
Click to hide internal directories.