ivalidator

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Struct

func Struct(v any) error

func Translate added in v0.0.2

func Translate(err error) string

func UseZH added in v0.0.2

func UseZH(validate *validator.Validate) error

func V

func V() *validator.Validate

func Var

func Var(v any, name, rule string) error

Types

type Errors

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

func (Errors) Error

func (e Errors) Error() string

Jump to

Keyboard shortcuts

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