Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidEmailAddress = errors.New("invalid e-mail address, address is missing @")
)
Functions ¶
This section is empty.
Types ¶
type EmailParts ¶
func NewEmailFromParts ¶
func NewEmailFromParts(local, domain string) EmailParts
NewEmailFromParts reconstructs EmailParts from two parts
func NewEmailParts ¶
func NewEmailParts(emailAddress string) (EmailParts, error)
NewEmailParts takes an e-mail address and returns it lower-cased and in parts. It performs only the most minimal form of syntax validation. An error is returned when the address doesn't contain an @, or when the input size is abnormal.
Click to show internal directories.
Click to hide internal directories.