validator

package
v0.0.0-...-045564c Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const UnexpectedIteratorTypeErr = "unexpected iterator type"

An UnexpectedIteratorTypeErr represents the message of unexpected iterator type error.

Variables

This section is empty.

Functions

func Get

func Get() *v.Validate

Get initializes and registers validation tags once, and returns validator instance.

func IntegerTypeConfigErr

func IntegerTypeConfigErr(name string) error

IntegerTypeConfigErr returns the formatted integer type error.

func OutOfRangeErr

func OutOfRangeErr(name string) error

OutOfRangeErr returns the formatted out of range error.

func RequiredErr

func RequiredErr(name string) error

RequiredErr returns the formatted required field error.

func WrongResourceNameErr

func WrongResourceNameErr(name string) error

WrongResourceNameErr returns the formatted wrong resource name error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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