validator

package
v0.0.0-...-eb9f5a9 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModeDefault = "default"
	ModeCompact = "compact"
	ModeVerbose = "verbose"
)

Variables

This section is empty.

Functions

func GetGlobal

func GetGlobal() *validator.Validate

func SetGlobal

func SetGlobal(v *validator.Validate)

func Validate

func Validate(s interface{}) (err error)

func ValidateWithOpts

func ValidateWithOpts(s interface{}, opt Opts) (err error)

Types

type Error

type Error struct {
	// contains filtered or unexported fields
}

func (Error) Error

func (e Error) Error() (out string)

func (Error) Unwrap

func (e Error) Unwrap() error

type Opts

type Opts struct {
	Mode string
}

Jump to

Keyboard shortcuts

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