validate

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsBankAccountNumber

func IsBankAccountNumber(value string) error

IsBankAccountNumber 是否是国内合法银行卡号

func IsCardNumber

func IsCardNumber(value string) error

IsCardNumber 是否是国内合法身份证号

func IsEmail

func IsEmail(value string) error

IsEmail 是否是合法邮箱

func IsLetterNumber

func IsLetterNumber(value string) error

IsLetterNumber 是否是国内合法手机号

func IsNearbyTime

func IsNearbyTime(t time.Time, intervals ...time.Duration) error

IsNearbyTime 是否为附近的时间

func IsPassword

func IsPassword(value string) error

IsPassword 是否为合法密码

func IsPhone

func IsPhone(value string) error

IsPhone 是否是国内合法手机号

func IsTitle

func IsTitle(value string) error

IsTitle 是否为合法密码

func IsUsername

func IsUsername(username string) error

IsUsername 是否为合法用户名

Types

This section is empty.

Jump to

Keyboard shortcuts

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