Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Unmarshaler ¶
type Unmarshaler struct { Validate *validator.Validate // contains filtered or unexported fields }
func New ¶
func New() *Unmarshaler
func (*Unmarshaler) Unmarshal ¶
func (p *Unmarshaler) Unmarshal(data []byte, dest interface{}) error
Unmarshal will unmarshal and validate the passed json data. If validation fails, dest will still have been modified!
func (*Unmarshaler) UnmarshalReader ¶
func (p *Unmarshaler) UnmarshalReader(r io.ReadCloser, dest interface{}) error
UnmarshalReader will unmarshal and validate the passed json data. If validation fails, dest will still have been modified!
type ValidationError ¶
type ValidationError struct { TranslatedErrors map[string]string // contains filtered or unexported fields }
func (ValidationError) Error ¶
func (err ValidationError) Error() string
Click to show internal directories.
Click to hide internal directories.