validutil

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPassword

func CheckPassword(s string) bool

func CheckStrongPassword

func CheckStrongPassword(s string) bool

func IsCnMobile

func IsCnMobile(val interface{}) bool

Verify mobile phone numbers in China

func IsCnPhone

func IsCnPhone(val interface{}) bool

Verify phone numbers in mainland China. The following formats are supported. 0578-12345678-1234 057812345678-1234 If an extension number exists, the extension number ligature cannot be omitted.

func IsEmail

func IsEmail(val interface{}) bool

Verify that a value matches a mailbox.

func IsIP

func IsIP(val interface{}) bool

Verify that a value is an IP, verifies IP4 and IP6

func IsIP4

func IsIP4(val interface{}) bool

Verify that a value is IP4.

func IsIP6

func IsIP6(val interface{}) bool

Verify that a value is IP6

func IsInt

func IsInt(val interface{}) bool

func IsURL

func IsURL(val interface{}) bool

Verify that a value is in a standard URL format. Supports formats such as IP and domain name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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