validator

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VTagValid = "valid"
)

Variables

View Source
var GintoolValidator = &gintoolValidator{}

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