forked from Fuyu/validate
Compare commits
3 commits
Author | SHA1 | Date | |
---|---|---|---|
6942b984c1 | |||
e810582264 | |||
7405c824fe |
2 changed files with 4 additions and 1 deletions
3
go.mod
Normal file
3
go.mod
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
module git.fuyu.moe/Fuyu/validate
|
||||||
|
|
||||||
|
go 1.17
|
|
@ -143,7 +143,7 @@ func TestRuleGteLte(t *testing.T) {
|
||||||
check(t, fail5, 1)
|
check(t, fail5, 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestLenMinMax(t *testing.T) {
|
func TestRuleLenMinMax(t *testing.T) {
|
||||||
type s struct {
|
type s struct {
|
||||||
A string `validate:"len=3"`
|
A string `validate:"len=3"`
|
||||||
B []int `validate:"min=2"`
|
B []int `validate:"min=2"`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue