Discover Packages
github.com/metaslink/metasdns
plugin
pkg
validutil
package
Version:
v0.0.0-...-406c194
Opens a new window with list of versions in this module.
Published: Jan 10, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func IsCnMobile(val interface{}) bool
Verify mobile phone numbers in China
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(val interface{}) bool
Verify that a value matches a mailbox.
func IsIP(val interface{}) bool
Verify that a value is an IP, verifies IP4 and IP6
func IsIP4(val interface{}) bool
Verify that a value is IP4.
func IsIP6(val interface{}) bool
Verify that a value is IP6
func IsURL(val interface{}) bool
Verify that a value is in a standard URL format. Supports formats such as IP and domain name.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.