We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c6ec6c commit 463e7e3Copy full SHA for 463e7e3
_examples/validate_fn/main.go
@@ -28,7 +28,7 @@ func (e *Enum) Validate() error {
28
}
29
30
type Struct struct {
31
- Foo *Enum `validate:"validateFn"` //uses Validate() error by default
+ Foo *Enum `validate:"validateFn"` // uses Validate() error by default
32
Bar Enum `validate:"validateFn=NotZero"` // uses NotZero() bool
33
34
validator_test.go
@@ -14197,7 +14197,6 @@ func TestValidateFn(t *testing.T) {
14197
Equal(t, fe.Field(), "Inner")
14198
Equal(t, fe.Namespace(), "Test.Inner")
14199
Equal(t, fe.Tag(), "validateFn")
14200
-
14201
})
14202
14203
t.Run("using struct", func(t *testing.T) {
0 commit comments