Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrDuplicateEmail = errors.New("duplicate email")
)
Functions ¶
func ValidateEmail ¶
func ValidateUser ¶
Types ¶
type User ¶
type User struct { ID int64 `json:"id"` CreatedAt time.Time `json:"created_at"` FirstName string `json:"first_name"` LastName string `json:"last_name"` Email string `json:"email"` Password password `json:"-"` Activated bool `json:"activated"` Department int `json:"department"` Version int `json:"-"` }
Click to show internal directories.
Click to hide internal directories.