Closed exqlnet closed 3 years ago
The Validate function for CustomerValidator would need to be changed to use the uppercased Validator then.
Validate
CustomerValidator
Validator
func (cv *CustomValidator) Validate(i interface{}) error { return cv.validator.Struct(i) }
Still I think this change is not needed. Please explain, why you proposed this PR. Probably I just overlooking something.
Sorry, it's my mistake. 😅 I just define CustomValidator and its function in another package. So it leads to compile error when I instantiate CustomValidator in the main package.
CustomValidator
The
Validate
function forCustomerValidator
would need to be changed to use the uppercasedValidator
then.Still I think this change is not needed. Please explain, why you proposed this PR. Probably I just overlooking something.