validation

package
v0.0.0-...-89dfdfc Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
}

func (Error) Error

func (e Error) Error() string

type Validator

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

func NewValidator

func NewValidator() Validator

func (Validator) Errors

func (v Validator) Errors() map[string]interface{}

func (Validator) Fails

func (v Validator) Fails() bool

func (Validator) Panic

func (v Validator) Panic()

func (Validator) Validate

func (v Validator) Validate(data map[string]any, rules map[string]interface{}) Validator

func (Validator) ValidateStruct

func (v Validator) ValidateStruct(data interface{}) Validator

Jump to

Keyboard shortcuts

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