labstack / echox

Echo cookbook and website
https://echo.labstack.com
MIT License
408 stars 285 forks source link

fix typo #159

Closed exqlnet closed 3 years ago

lammel commented 3 years ago

The Validate function for CustomerValidator would need to be changed to use the uppercased Validator then.

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.

exqlnet commented 3 years ago

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.