Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFileSizeToHigh = fmt.Errorf("file size to high")
View Source
var ErrFileSizeToLow = fmt.Errorf("file size to low")
View Source
var ErrFileSizeToLowForValidation = fmt.Errorf("file size to low for validation")
View Source
var ErrUnknownFileType = fmt.Errorf("define a supported type")
View Source
var ErrWrongFileType = fmt.Errorf("wrong file type")
Functions ¶
func AllMessages ¶
func AllMessages() []string
Types ¶
type Error ¶
type Error struct { //I for index or key map, makes it easier to locate where msg belongs I interface{} `json:"i,omitempty"` Msg string `json:"msg"` }
type Errors ¶
type Errors []*Error
func FieldByStrRules ¶
FieldByStrRules accepts rules like "required=true,email=true,matches=^(abc|123)$"
Click to show internal directories.
Click to hide internal directories.