is

package
v1.4.8-beta-1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: MIT Imports: 5 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ReEmail = `\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*`

	ReUuid = `[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}`

	ReDomain = `[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+$`

	ReURL = `[a-zA-z]+://[^\s]*`

	ReIPv4 = `^((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$`

	ReIPv6 = `` /* 944-byte string literal not displayed */
)

Functions

func Crontab

func Crontab(s string) bool

func Domain

func Domain(s string) bool

func Email

func Email(s string) bool

func IP

func IP(s string) bool

func IPv4

func IPv4(s string) bool

func IPv6

func IPv6(s string) bool

func In

func In(arr interface{}, item interface{}) bool

func MargeErr

func MargeErr(errs ...error) error

func NotIn

func NotIn(arr interface{}, item interface{}) bool

func Number

func Number(s string) bool

func Re

func Re(re string, text string) bool

func URL

func URL(s string) bool

func Uuid

func Uuid(s string) bool

func Zero

func Zero(v interface{}) bool

Types

type Empty

type Empty struct{}

Jump to

Keyboard shortcuts

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