verify

package module
v0.0.0-...-3c88df0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

README

verify

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CitizenNoInfo

func CitizenNoInfo(idNo string) (birthday time.Time, sex string, address string, err error)

func IsAccountName

func IsAccountName(accountName string) bool

func IsObjectID

func IsObjectID(id string) bool

func IsPassword

func IsPassword(password string) bool

func IsPayPassword

func IsPayPassword(password string) bool

func IsRealName

func IsRealName(name string) bool

func IsValidCitizenNo

func IsValidCitizenNo(idNo string) bool

func IsValidMobilePhoneNumber

func IsValidMobilePhoneNumber(mobilePhoneNumber string) bool

func IsValidUsername

func IsValidUsername(username string) bool

func IsVerifyEmailFormat

func IsVerifyEmailFormat(email string) bool

func ValidateObjectID

func ValidateObjectID(fl validator.FieldLevel) bool

func ValidatePhone

func ValidatePhone(fl validator.FieldLevel) bool

Types

type Validator

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

func NewValidator

func NewValidator() *Validator

func (*Validator) Validate

func (c *Validator) Validate(i interface{}) error

Jump to

Keyboard shortcuts

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