Versions in this module Expand all Collapse all v0 v0.20.0 Jun 24, 2015 Changes in this version + func NewValidationErrorFieldPrefixMatcher(prefix string) errors.Matcher + func NewValidationErrorTypeMatcher(t ValidationErrorType) errors.Matcher + type ValidationError struct + BadValue interface{} + Detail string + Field string + Type ValidationErrorType + func NewFieldDuplicate(field string, value interface{}) *ValidationError + func NewFieldForbidden(field string, value interface{}) *ValidationError + func NewFieldInvalid(field string, value interface{}, detail string) *ValidationError + func NewFieldNotFound(field string, value interface{}) *ValidationError + func NewFieldNotSupported(field string, value interface{}) *ValidationError + func NewFieldRequired(field string) *ValidationError + func NewFieldTooLong(field string, value interface{}, maxLength int) *ValidationError + func (v *ValidationError) Error() string + type ValidationErrorList []error + func (list ValidationErrorList) Filter(fns ...errors.Matcher) ValidationErrorList + func (list ValidationErrorList) Prefix(prefix string) ValidationErrorList + func (list ValidationErrorList) PrefixIndex(index int) ValidationErrorList + type ValidationErrorType string + const ValidationErrorTypeDuplicate + const ValidationErrorTypeForbidden + const ValidationErrorTypeInvalid + const ValidationErrorTypeNotFound + const ValidationErrorTypeNotSupported + const ValidationErrorTypeRequired + const ValidationErrorTypeTooLong + func (t ValidationErrorType) String() string