-
Notifications
You must be signed in to change notification settings - Fork 0
/
facades.go
52 lines (50 loc) · 928 Bytes
/
facades.go
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
package gopass
import "github.com/gohouse/gopass/rules"
func Required() string {
return rules.Required()
}
func Numeric() string {
return rules.Numeric()
}
func Integer() string {
return rules.Integer()
}
func Float() string {
return rules.Float()
}
func Url() string {
return rules.Url()
}
func Email() string {
return rules.Emaill()
}
func ChineseMobile() string {
return rules.ChineseMobile()
}
func Json() string {
return rules.Json()
}
func Xml() string {
return rules.Xml()
}
func Date() string {
return rules.Date()
}
func Between(min, max interface{}) string {
return rules.Between(min, max)
}
func Length(arg interface{}) string {
return rules.Length(arg)
}
func Min(arg interface{}) string {
return rules.Min(arg)
}
func Max(arg interface{}) string {
return rules.Max(arg)
}
func In(args ...interface{}) string {
return rules.In(args...)
}
func Regexp(arg string) string {
return rules.Regexp(arg)
}