validator

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResetTagName added in v1.3.0

func ResetTagName()

func SetTagName added in v1.3.0

func SetTagName(name string)

func Validate

func Validate(data any, rules ...any) (err error)

Types

type ValidatorInstance added in v1.4.0

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

func New added in v1.4.0

func New(tagName ...string) *ValidatorInstance

func (*ValidatorInstance) Validate added in v1.4.0

func (i *ValidatorInstance) Validate(data any, rules ...any) (err error)

Jump to

Keyboard shortcuts

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