validator

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrStruct     = errors.New("the struct provided couldn't be checked")
	ErrBadRequest = errors.New("bad request")
)

Functions

This section is empty.

Types

type InvalidField

type InvalidField struct {
	Name  string
	Kind  string
	Param string
	Extra string
}

func ValidateStruct added in v0.7.3

func ValidateStruct(data interface{}) ([]InvalidField, error)

func ValidateVar added in v0.7.3

func ValidateVar(data interface{}, tag string) ([]InvalidField, error)

Jump to

Keyboard shortcuts

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