lang

package
v0.0.0-...-31ddaea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNameRequired            = errors.New("name is required.")
	ErrUserIdRequired          = errors.New("UserId is required.")
	ErrEmailRequired           = errors.New("Email is required.")
	ErrPasswordRequired        = errors.New("Password is required.")
	ErrConfirmPasswordRequired = errors.New("ConfirmPassword is required.")
	ErrConfitmPasswordNotSame  = errors.New("Password confirmation does not match.")
	ErrRoleRequired            = errors.New("Role is required.")
	ErrEmailNotFound           = errors.New("The email has not been registered.")
	ErrEmailAlready            = errors.New("The email is already.")
	ErrPasswordIsIncorrent     = errors.New("The password you entered is incorrect.")
	ErrRoleAlready             = errors.New("The name role is already.")
	ErrPermissionAlready       = errors.New("The name permission is already.")
	ErrUnsupportFile           = errors.New("unsupport file type.")
	ErrTemplateAlready         = errors.New("The name template is already.")
	EmailAddressVerified       = errors.New("Your email address is verified.")
	EmailAddressUnverified     = errors.New("Your email address is unverified.")
	TokenNotValid              = errors.New("The token is not valid.")
	TokenHasExpired            = errors.New("The token has expired.")
	UserNotFound               = errors.New("User not found.")

	Locales = map[string]string{
		"filled": "The :attribute field is required.",
	}
)

Functions

func Trans

func Trans(field string, attributes ...interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL