asaskevich / govalidator

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

Validator int doesn't supported Kind int #88

Closed gaelreyrol closed 8 years ago

gaelreyrol commented 9 years ago

Hello,

I recently updated your package and I am getting an strange issue ! I get this :

Limit: Validator int doesn't supported Kind int;

When I try to validate this struct :

var Form struct {
    Offset int `valid:"int"`
    Limit  int `valid:"int"`
}

And If I remove Limit Validator the issue disappear.

Thanks !

asaskevich commented 9 years ago

Yes, currently it works with strings, but here is PL with supporting custom types, like int: https://github.com/asaskevich/govalidator/pull/91 Look on it, maybe it will be useful for your issue

asaskevich commented 8 years ago

141