-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalidations.go
60 lines (46 loc) · 1.63 KB
/
validations.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
53
54
55
56
57
58
59
60
package uniform
import (
"time"
)
var ValidateRequired = func(value interface{}) (bool, []string) {
if IsEmpty(value) {
return false, []string{ "May not be empty" }
}
return true, nil
}
var ValidateMinimumInt = func(minimum int64, value interface{}) (bool, []string) {
panic("not yet implemented")
}
var ValidateMaximumInt = func(maximum int64, value interface{}) (bool, []string) {
panic("not yet implemented")
}
var ValidateMinimumFloat = func(minimum float64, value interface{}) (bool, []string) {
panic("not yet implemented")
}
var ValidateMaximumFloat = func(maximum float64, value interface{}) (bool, []string) {
panic("not yet implemented")
}
var ValidateRangeInt = func(minimum, maximum int64, value interface{}) (bool, []string) {
panic("not yet implemented")
}
var ValidateRangeFloat = func(minimum, maximum float64, value interface{}) (bool, []string) {
panic("not yet implemented")
}
var ValidateMobile = func(country string, value interface{}) (bool, []string, interface{}) {
panic("not yet implemented")
}
var ValidateEmail = func(value interface{}) (bool, []string, interface{}) {
panic("not yet implemented")
}
var ValidatePassportNumber = func(country string, value interface{}) (bool, []string, interface{}) {
panic("not yet implemented")
}
var ValidateIdentityNumber = func(country string, value interface{}) (bool, []string, interface{}) {
panic("not yet implemented")
}
var ValidateDate = func(american bool, value interface{}) (bool, []string, time.Time) {
panic("not yet implemented")
}
var ValidateDateTime = func(american bool, value interface{}) (bool, []string, time.Time) {
panic("not yet implemented")
}