Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = fmt.Errorf("data not found") ErrDuplicateEntry = fmt.Errorf("duplicate entry on email") ErrDatabase = fmt.Errorf("database error") ErrBadRequest = fmt.Errorf("bad request") ErrPasswordIncorrect = fmt.Errorf("password incorrect") ErrBlocked = fmt.Errorf("user blocked") )
View Source
var Validate = validator.New()
Functions ¶
This section is empty.
Types ¶
type ErrorStruct ¶
func CheckError ¶
func CheckError(err error) *ErrorStruct
Click to show internal directories.
Click to hide internal directories.