validutil

package
v0.0.0-...-406c194 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 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