validate

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTagParsers added in v1.9.10

func AddTagParsers(parser tagParser)

AddTagParsers used in fieldName

func CheckErrors added in v1.9.4

func CheckErrors(opts Options) (ok bool, err error)

CheckErrors of validator and return formatted errors:

Types

type Options added in v1.9.10

type Options struct {
	Struct    interface{}
	Errors    error
	Formatter func(fields []string) string
}

Options to call CheckErrors method

type Validator added in v1.6.6

type Validator interface {
	Validate(interface{}) error
}

Validator is the interface that wraps the Validate function.

func New

func New(v *validator.Validate) Validator

New creates new wrapper of validator for echo.Validator

Jump to

Keyboard shortcuts

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