-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmv.go
More file actions
110 lines (86 loc) · 2.45 KB
/
Copy pathmv.go
File metadata and controls
110 lines (86 loc) · 2.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
package mv
import (
"github.com/Multiform-Validator/go/ascii"
"github.com/Multiform-Validator/go/base64"
"github.com/Multiform-Validator/go/cep"
"github.com/Multiform-Validator/go/cnpj"
"github.com/Multiform-Validator/go/cpf"
"github.com/Multiform-Validator/go/creditcard"
"github.com/Multiform-Validator/go/email"
"github.com/Multiform-Validator/go/image"
"github.com/Multiform-Validator/go/macaddress"
"github.com/Multiform-Validator/go/md5"
"github.com/Multiform-Validator/go/port"
"github.com/Multiform-Validator/go/postalcode"
"github.com/Multiform-Validator/go/telephone"
"github.com/Multiform-Validator/go/text"
)
func IsAscii(value string) error {
return ascii.IsAscii(value)
}
func IsAsciiBytes(value []byte) error {
return ascii.IsAsciiBytes(value)
}
func IsBase64(value string) error {
return base64.IsBase64(value)
}
func IsCEP(value string) error {
return cep.IsCEP(value)
}
func CalculateCNPJCheckDigits(value string) (string, error) {
return cnpj.CalculateCNPJCheckDigits(value)
}
func IsCNPJ(value string) error {
return cnpj.IsCNPJ(value)
}
func IsCPF(value string) error {
return cpf.IsCPF(value)
}
func IdentifyFlagCard(value string) string {
return creditcard.IdentifyFlagCard(value)
}
func IsCreditCard(value string) error {
return creditcard.IsCreditCard(value)
}
func GetOnlyEmail(value string, options ...email.GetOnlyEmailOptions) string {
return email.GetOnlyEmail(value, options...)
}
func GetOnlyEmails(value string, options ...email.GetOnlyEmailOptions) []string {
return email.GetOnlyEmails(value, options...)
}
func IsEmail(value string) error {
return email.IsEmail(value)
}
func IsImage(value []byte) error {
return image.IsImage(value)
}
func IsMACAddress(value string) error {
return macaddress.IsMACAddress(value)
}
func IsMD5(value string) error {
return md5.IsMD5(value)
}
func IsPort(value string) error {
return port.IsPort(value)
}
func IsPortNumber(value int) error {
return port.IsPortNumber(value)
}
func IsPostalCode(value string, countries ...string) error {
return postalcode.IsPostalCode(value, countries...)
}
func IsTelephone(value string, countries ...string) error {
return telephone.IsTelephone(value, countries...)
}
func IsBlank(value string) error {
return text.IsBlank(value)
}
func IsBlankBytes(value []byte) error {
return text.IsBlankBytes(value)
}
func IsEmpty(value string) error {
return text.IsEmpty(value)
}
func IsEmptyBytes(value []byte) error {
return text.IsEmptyBytes(value)
}