Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidEmail defines the error when an invalid email address is encountered ErrInvalidEmail = errors.New("invalid email") )
Functions ¶
func ValidateEmail ¶
ValidateEmail validates the provided email address. If is was modified this function also accepts empty addresses (= no change)
Types ¶
type User ¶
type User struct { Name string `json:"name"` Email string `json:"email"` Alias string `json:"alias"` GpgKeyID string `json:"gpg_key_id"` AddedAt time.Time `json:"added_at"` ModifiedAt time.Time `json:"modified_at"` }
User describes the structure of the user JSON data
Click to show internal directories.
Click to hide internal directories.