validator

package
v0.0.0-...-0299d3b Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get() *v.Validate

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

func InvalidEmailErr

func InvalidEmailErr(name string) error

InvalidEmailErr returns the formatted email field error.

func InvalidNameErr

func InvalidNameErr(name string) error

InvalidNameErr returns the formatted invalid name error.

func RequiredErr

func RequiredErr(name string) error

RequiredErr returns the formatted required field error.

func Validate

func Validate(s interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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