valid

package
v0.0.0-...-2963207 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OrderDirectValid

func OrderDirectValid(fl validator.FieldLevel) bool

OrderDirectValid doc Summary validator int is order direct is valid Method OrderDirectValid Return (bool)

func UserNameValid

func UserNameValid(fl validator.FieldLevel) bool

UserNameValid doc Summary validator username is valid Method UserNameValid Return (bool)

func UserStateValid

func UserStateValid(fl validator.FieldLevel) bool

UserStateValid doc Summary validator user state is valid Method UserStateValid Return (bool)

Types

type V9Validator

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

V9Validator validator v9 Single case

func (*V9Validator) Engine

func (v *V9Validator) Engine() interface{}

Engine returns the underlying validator engine which powers the default Validator instance. This is useful if you want to register custom validations or struct level validations. See validator GoDoc for more info - https://godoc.org/gopkg.in/go-playground/validator.v8

func (*V9Validator) ValidateStruct

func (v *V9Validator) ValidateStruct(obj interface{}) error

ValidateStruct receives any kind of type, but only performed struct or pointer to struct type.

Jump to

Keyboard shortcuts

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