Documentation ¶
Index ¶
Constants ¶
View Source
const (
// AT store at symbol
AT = "@"
)
Variables ¶
This section is empty.
Functions ¶
func SeparateEmail ¶
SeparateEmail separates email by "@" and returns two parts
Types ¶
type Address ¶
Address represents email
func EmptyEmail ¶
EmptyEmail return defaultVal if val is nil
func NewEmailAddress ¶
NewEmailAddress forms Address from username and domain
func NewEmailAddressWithSource ¶
NewEmailAddressWithSource forms Address source used to store empty emails or without username or domain part
Click to show internal directories.
Click to hide internal directories.