validation

package
v0.0.0-...-ce263d7 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field vLib.FieldLevel

type Validator

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

func NewValidator

func NewValidator() *Validator

func (*Validator) RegisterValidation

func (v *Validator) RegisterValidation(tag string, check func(Field) bool, errMsg string) error

func (*Validator) UnpackErrors

func (v *Validator) UnpackErrors(e error) []string

func (*Validator) ValidateStruct

func (v *Validator) ValidateStruct(value any) error

Jump to

Keyboard shortcuts

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