Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Error ¶
func (*Error) MarshalJSON ¶
func (*Error) Translate ¶
func (err *Error) Translate(tr TranslatorFunc) any
type Map ¶
type Map map[string]Validation
func (Map) Translate ¶
func (err Map) Translate(tr TranslatorFunc) any
type Slice ¶
type Slice []Validation
func (Slice) Translate ¶
func (err Slice) Translate(tr TranslatorFunc) any
type TranslatorFunc ¶
type Validation ¶
type Validation interface { error Translate(TranslatorFunc) any // contains filtered or unexported methods }
func New ¶
func New(field, err string) Validation
Click to show internal directories.
Click to hide internal directories.