go-validator/validator

nonnil does not work on funcs

asaf opened this issue · 0 comments

asaf commented

Hey,

a validation such as below won't work, seems like the nonnil func does not handle functions right.

type Foo {
  Func func()  `validate:"nonnil"`
}