go-ozzo / ozzo-validation

An idiomatic Go (golang) validation package. Supports configurable and extensible validation rules (validators) using normal language constructs instead of error-prone struct tags.
MIT License
3.73k stars 224 forks source link

Add RuneLength rule? #33

Closed otto-md closed 7 years ago

otto-md commented 7 years ago

Thanks for a very nice library.

Right now if I do a validation.Length(8, 16) on the string 💥💥 I would probably expect it to fail.

The https://github.com/asaskevich/govalidator library already has a RuneLength validator.

qiangxue commented 7 years ago

Thanks for the suggestion!