validators

package
v0.0.0-...-1753806 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure() (err error)

func NewValidator

func NewValidator(validatorStruct interface{}) (errors map[string]interface{})

func RegisterValidator

func RegisterValidator(validator *Validator)

Types

type Validator

type Validator struct {
	Name                     string
	CallValidationEvenIfNull bool

	HandleFunc          validator.Func
	TranslationRegister validator.RegisterTranslationsFunc
	TranslationFunc     validator.TranslationFunc
}

Jump to

Keyboard shortcuts

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