|
|
@ -141,13 +141,10 @@ func TestTranslations(t *testing.T) { |
|
|
|
UniqueSlice []string `validate:"unique"` |
|
|
|
UniqueSlice []string `validate:"unique"` |
|
|
|
UniqueArray [3]string `validate:"unique"` |
|
|
|
UniqueArray [3]string `validate:"unique"` |
|
|
|
UniqueMap map[string]string `validate:"unique"` |
|
|
|
UniqueMap map[string]string `validate:"unique"` |
|
|
|
<<<<<<< HEAD |
|
|
|
|
|
|
|
JSONString string `validate:"json"` |
|
|
|
JSONString string `validate:"json"` |
|
|
|
LowercaseString string `validate:"lowercase"` |
|
|
|
LowercaseString string `validate:"lowercase"` |
|
|
|
UppercaseString string `validate:"uppercase"` |
|
|
|
UppercaseString string `validate:"uppercase"` |
|
|
|
======= |
|
|
|
|
|
|
|
Datetime string `validate:"datetime=2006-01-02"` |
|
|
|
Datetime string `validate:"datetime=2006-01-02"` |
|
|
|
>>>>>>> Add datetime validation |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var test Test |
|
|
|
var test Test |
|
|
|