Versions in this module Expand all Collapse all v0 v0.0.2 Jul 25, 2024 v0.0.1 Jul 13, 2024 Changes in this version + var ErrFailedToGetTranslator = errors.New("failed to get translator for `en`") + var ErrInputNotTranslatable = errors.New("input is not translatable") + var ErrValidationFailed = errors.New("validation failed") + type Error struct + Field string + Message string + type InternalErrorSerializer struct + ErrorID string + type ParsingErrorSerializer struct + Error string + type V10 struct + func NewValidatorV10() (*V10, error) + func (v V10) Translate(err error) []Error + func (v V10) ValidateStruct(input any) error + type ValidationErrorSerializer struct + Errors []Error + type Validator interface + Translate func(err error) []Error + ValidateStruct func(input any) error