validatorext

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "Validator"
)

Variables

This section is empty.

Functions

func Struct

func Struct(s any) error

Types

type EnumValidation

type EnumValidation interface {
	InRange(v any) bool
}

type Validate added in v1.3.0

type Validate struct {
	*validator.Validate
}

func New added in v1.3.0

func New() *Validate

func (*Validate) SetDefault added in v1.3.0

func (v *Validate) SetDefault()

func (*Validate) Struct added in v1.3.0

func (v *Validate) Struct(s any) error

type Validation added in v1.3.0

type Validation struct {
	Field string
	Tag   string
}

func ParseError added in v1.3.0

func ParseError(err error) []*Validation

Jump to

Keyboard shortcuts

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