validator

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEnglishIdentifier

func IsEnglishIdentifier(val string, pattern ...string) bool

func IsIPInt

func IsIPInt(i int) bool

四个字节,32位整数,int32

func IsIPStr

func IsIPStr(s string) bool

func IsIllegalName

func IsIllegalName(s string) bool

只能由字母、数字和下划线组合,且首字符不能是数字

func IsMail

func IsMail(val string) bool

func IsMatch

func IsMatch(val, pattern string) bool

func IsPhone

func IsPhone(val string) bool

func IsSpecifiedURL

func IsSpecifiedURL(s, scheme string) bool

func IsTimestamp

func IsTimestamp(v interface{}) bool

10个字符长度时间戳,s单位,以1开头 如果是数字,必须先转化为int64

func IsURL

func IsURL(s string) bool

func IsUnixDir

func IsUnixDir(s string) bool

Unix directory starts by `/`

Types

This section is empty.

Jump to

Keyboard shortcuts

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