Versions in this module Expand all Collapse all v0 v0.0.1 Jan 5, 2023 Changes in this version + func NewErrorTypeMatcher(t ErrorType) utilerrors.Matcher + type Error struct + BadValue interface{} + Detail string + Field string + Type ErrorType + func Duplicate(field *Path, value interface{}) *Error + func Forbidden(field *Path, detail string) *Error + func InternalError(field *Path, err error) *Error + func Invalid(field *Path, value interface{}, detail string) *Error + func NotFound(field *Path, value interface{}) *Error + func NotSupported(field *Path, value interface{}, validValues []string) *Error + func Required(field *Path, detail string) *Error + func TooLong(field *Path, value interface{}, maxLength int) *Error + func TooLongMaxLength(field *Path, value interface{}, maxLength int) *Error + func TooMany(field *Path, actualQuantity, maxQuantity int) *Error + func TypeInvalid(field *Path, value interface{}, detail string) *Error + func (v *Error) Error() string + func (v *Error) ErrorBody() string + type ErrorList []*Error + func (list ErrorList) Filter(fns ...utilerrors.Matcher) ErrorList + func (list ErrorList) ToAggregate() utilerrors.Aggregate + type ErrorType string + const ErrorTypeDuplicate + const ErrorTypeForbidden + const ErrorTypeInternal + const ErrorTypeInvalid + const ErrorTypeNotFound + const ErrorTypeNotSupported + const ErrorTypeRequired + const ErrorTypeTooLong + const ErrorTypeTooMany + const ErrorTypeTypeInvalid + func (t ErrorType) String() string + type OmitValueType struct + type Path struct + func NewPath(name string, moreNames ...string) *Path + func ToPath(opts ...PathOption) *Path + func (p *Path) Child(name string, moreNames ...string) *Path + func (p *Path) Index(index int) *Path + func (p *Path) Key(key string) *Path + func (p *Path) Root() *Path + func (p *Path) String() string + type PathOption func(o *pathOptions) + func WithPath(p *Path) PathOption