package
1.20240719.1
Repository: https://github.com/blend/go-sdk.git
Documentation: pkg.go.dev

# Functions

All returns a validator that returns all non-nil validation errors from a given set of validators.
Any returns a new AnyRefValidators.
ErrCause returns the underlying validation failure for an error.
ErrFormat formats an error.
ErrInner returns the inner validation error if it's present on the outer error.
ErrMessage returns the underlying validation error message.
Error returns a new validation error.
Errorf returns a new validation error.
ErrValue returns the validation error value.
First is a validator that returns the first error of a given set of validators.
Float32 returns validators for float32s.
Float64 returns validators for float64s.
GetLength returns the length of an object or an error if it's not a thing that can have a length.
Int returns validators for ints.
Int16 returns validators for int16s.
Int32 returns validators for int32s.
Int64 returns validators for int64s.
Int8 returns validators for int8s.
Is returns if an error is a validation error.
IsNil returns if an object is nil or is a typed pointer to nil.
Many defines validator rules that apply to a variadic set of untyped references.
Map returns validators for a map type reference.
ReturnAll returns all the failing validations as an array of validation errors.
ReturnFirst runs a list of validators and returns the first validator to error (if there is one).
SensitiveString contains helpers for sensitive string validation, which avoids including sensitive data in error messages.
String contains helpers for string validation.
Time validator singleton.
Uint16 returns validators for uint16s.
Uint32 returns validators for uint32s.
Uint64 returns validators for uint64s.
Uint8 returns validators for uint8s.
UUID returns a uuid.UUID validator.
When returns the result of the "passes" validator if the predicate returns true, otherwise it returns nil.
WhenElse returns the result of the "passes" validator if the predicate returns true, otherwise it returns the result of the "fails" validator.

# Constants

DefaultEpsilon is a default epsilon.
Basic errors.
Basic errors.
Basic errors.
Basic errors.
Float32 errors.
Float32 errors.
Float32 errors.
Float32 errors.
Float32 errors.
Float32 errors.
Float32 errors.
Float64 errors.
Float64 errors.
Float64 errors.
Float64 errors.
Float64 errors.
Float64 errors.
Float64 errors.
Basic errors.
Errors.
Int16 errors.
Int16 errors.
Int16 errors.
Int16 errors.
Int16 errors.
Int16 errors.
Int32 errors.
Int32 errors.
Int32 errors.
Int32 errors.
Int32 errors.
Int32 errors.
Int64 errors.
Int64 errors.
Int64 errors.
Int64 errors.
Int64 errors.
Int64 errors.
Int8 errors.
Int8 errors.
Int8 errors.
Int8 errors.
Int8 errors.
Int8 errors.
Int errors.
Int errors.
Int errors.
Int errors.
Int errors.
Int errors.
Basic errors.
Errors.
Basic errors.
Errors.
Basic errors.
Basic errors.
Basic errors.
Basic errors.
Basic errors.
Errors.
Errors.
Errors.
String errors.
String errors.
String errors.
String errors.
String errors.
String errors.
String errors.
String errors.
String errors.
String errors.
String errors.
String errors.
String errors.
String errors.
String errors.
String errors.
String errors.
Uint16 errors.
Uint16 errors.
Uint16 errors.
Uint16 errors.
Uint32 errors.
Uint32 errors.
Uint32 errors.
Uint32 errors.
Uint64 errors.
Uint64 errors.
Uint64 errors.
Uint64 errors.
Uint8 errors.
Uint8 errors.
Uint8 errors.
Uint8 errors.
UUID errors.
UUID errors.
UUID errors.
UUID errors.
The root error, all validation errors inherit from this type.
Basic errors.

# Structs

AnyValidators are validators for the empty interface{}.
Float32Validators implements float32 validators.
Float64Validators implements float64 validators.
Int16Validators implements int16 validators.
Int32Validators implements int32 validators.
Int64Validators implements int64 validators.
Int8Validators implements int8 validators.
IntValidators implements int validators.
ManyValidators returns the validator singleton for some rules.
MapValidators is a set of validators for maps.
NoOp is an empty validated.
StringValidators returns string validators.
TimeValidators implements validators for time.Time values.
Uint16Validators implements uint16 validators.
Uint32Validators implements uint32 validators.
Uint64Validators implements uint64 validators.
Uint8Validators implements uint8 validators.
UUIDValidators implements validators for uuid.UUIDs.
ValidationError is the inner error for validation exceptions.

# Type aliases

ValidationErrors is a set of errors.
Validator validates any object.