validator

package
v1.0.40 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TagValid = "valid"
)

Variables

View Source
var EchotoolValidator = &echotoolValidator{}

Functions

This section is empty.

Types

type Validator

type Validator interface {
	ValidateStruct(obj interface{}) error
	RegisterValidation(key string, fn validator.Func) error
	RegisterAliasValidation(alias, tags string)
	RegisterStructValidation(fn validator.StructLevelFunc, types ...interface{})
	RegisterCustomTypeFunc(fn validator.CustomTypeFunc, types ...interface{})
}

Jump to

Keyboard shortcuts

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