verify

package
Version: v0.0.1 Latest Latest
Warning

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

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

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
t or T : Toggle theme light dark auto
y or Y : Canonical URL