Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultValidator ¶
type DefaultValidator struct {
// contains filtered or unexported fields
}
func (*DefaultValidator) Engine ¶
func (v *DefaultValidator) Engine() any
Engine returns the underlying validator engine which powers the default Validator instance. This is useful if you want to register custom validations or struct level validations. See validator GoDoc for more info - https://pkg.go.dev/github.com/go-playground/validator/v10
func (*DefaultValidator) ValidateStruct ¶
func (v *DefaultValidator) ValidateStruct(obj any) error
ValidateStruct receives any kind of type, but only performed struct or pointer to struct type.
type SliceValidationError ¶
type SliceValidationError []error
func (SliceValidationError) Error ¶
func (err SliceValidationError) Error() string
Error concatenates all error elements in SliceValidationError into a single string separated by \n.
Click to show internal directories.
Click to hide internal directories.