package
1.0.2
Repository: https://github.com/ibrt/golang-validation.git
Documentation: pkg.go.dev

# Functions

IsValidatable returns true if the given struct implements at least one of Validator or SimpleValidator.
MustRegisterValidator registers a validator.
MustValidate is like Validate but panics on error.
MustValidateStruct is like ValidateStruct, panics on error.
NewErrFailedValidation creates a new failed validation error.
RegexpValidatorFactory creates a validator that matches a regexp.
Validate calls Valid and/or Validate if the given value implements SimpleValidator or Validator.
ValidateStruct validates a struct.
WrapErrFailedValidation wraps an error as failed validation error.

# Constants

ErrIDFailedValidation is an error ID.

# Interfaces

SimpleValidator describes a type that can validate itself, returning only a "valid" bool.
Validator describes a type that can validate itself.