Documentation ¶
Index ¶
- Constants
- func Crontab(s string) bool
- func Domain(s string) bool
- func Email(s string) bool
- func IP(s string) bool
- func IPv4(s string) bool
- func IPv6(s string) bool
- func In(arr interface{}, item interface{}) bool
- func MargeErr(errs ...error) error
- func NotIn(arr interface{}, item interface{}) bool
- func Number(s string) bool
- func Re(re string, text string) bool
- func URL(s string) bool
- func Uuid(s string) bool
- func Zero(v interface{}) bool
- type Empty
Constants ¶
View Source
const ( 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 */ )
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.