validators

package
v0.0.0-...-c210651 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckFileName

func CheckFileName(fl validator.FieldLevel) bool

func CheckTagName

func CheckTagName(fl validator.FieldLevel) bool

func CheckUserPassword

func CheckUserPassword(fl validator.FieldLevel) bool

func CheckUserUsername

func CheckUserUsername(fl validator.FieldLevel) bool

Types

type Validator

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

func New

func New() *Validator

func (*Validator) Validate

func (val *Validator) Validate(model interface{}) error

Jump to

Keyboard shortcuts

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