asaskevich / govalidator

[Go] Package of validators and sanitizers for strings, numerics, slices and structs
MIT License
6.02k stars 556 forks source link

Remove unneeded type conversion for CustomTypeValidator #381

Closed gabriel-vasile closed 4 years ago

gabriel-vasile commented 4 years ago

A func(interface{}, interface{}) bool can be used in all places where a CustomTypeValidator is needed without the need for a type conversion.