Documentation ¶
Index ¶
Constants ¶
View Source
const ( MinAge = 13 MaxAge = 150 )
Variables ¶
View Source
var ( // All errors. ErrNotFound = errors.Get("user.notFound") // For text-only errors without params. ErrAlreadyExists = errors.Get("user.alreadyExists") ErrInvalidAge = errors.Get("user.invalidAge") // For errors with constant params. ErrUnderAge = errors.Get("user.underAge") // ErrInvalidName = errors.Get("user.invalidName") // For errors with dynamic params. ErrValidationErrors = errors.Get("user.validationErrors") // )
Functions ¶
func InvalidAgeError ¶ added in v0.14.0
func InvalidAgeError() error
func InvalidNameError ¶ added in v0.14.0
func UnderAgeError ¶ added in v0.14.0
func UnderAgeError() error
func ValidationErrors ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.