package
0.2.2
Repository: https://github.com/buzhiyun/go-utils.git
Documentation: pkg.go.dev

# Functions

New returns a new instance of 'validate' with sane defaults.

# Structs

InvalidValidationError describes an invalid argument passed to `Struct`, `StructExcept`, StructPartial` or `Field`.
Validate contains the validator settings and cache.

# Interfaces

FieldError contains all functions to get error details.
FieldLevel contains all the information and helper functions to validate a field.
StructLevel contains all the information and helper functions to validate a struct.

# Type aliases

CustomTypeFunc allows for overriding or adding custom field type handler functions field = field value of the type to return a value to be validated example Valuer from sql drive see https://golang.org/src/database/sql/driver/types.go?s=1210:1293#L29.
FilterFunc is the type used to filter fields using StructFiltered(...) function.
Func accepts a FieldLevel interface for all validation needs.
FuncCtx accepts a context.Context and FieldLevel interface for all validation needs.
StructLevelFunc accepts all values needed for struct level validation.
StructLevelFuncCtx accepts all values needed for struct level validation but also allows passing of contextual validation information via context.Context.
TagNameFunc allows for adding of a custom tag name parser.
ValidationErrors is an array of FieldError's for use in custom error messages post validation.
ValidationErrorsTranslations is the translation return type.