validator

package
v1.4.0-dev3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Codespace = "validation"
)

Variables

View Source
var (
	ErrRequiredFieldMissing     = errors.Register(Codespace, 900, "required field missing")
	ErrFieldMaxLengthExceeded   = errors.Register(Codespace, 901, "field max length exceeded")
	ErrFieldNotValid            = errors.Register(Codespace, 902, "field not valid")
	ErrFieldLowerBoundViolated  = errors.Register(Codespace, 903, "field lower bound violated")
	ErrFieldUpperBoundViolated  = errors.Register(Codespace, 904, "field upper bound violated")
	ErrFieldMinLengthNotReached = errors.Register(Codespace, 905, "field min length not reached")
)

Functions

func Validate added in v0.6.0

func Validate(s interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL