diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..6c20678 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module git.fuyu.moe/Fuyu/validate + +go 1.17 diff --git a/rules_test.go b/rules_test.go index 409c8fc..9eedca2 100644 --- a/rules_test.go +++ b/rules_test.go @@ -143,7 +143,7 @@ func TestRuleGteLte(t *testing.T) { check(t, fail5, 1) } -func TestLenMinMax(t *testing.T) { +func TestRuleLenMinMax(t *testing.T) { type s struct { A string `validate:"len=3"` B []int `validate:"min=2"`