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 wrapper function and message for exact length #59

Closed jodlajodla closed 6 years ago

jodlajodla commented 6 years ago

Proposed changes:

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 5f11b2e9a4aedaf55521529853b531117dcfbce1 on jodlajodla:master into 48037855ba4111c954dd8723cce012ecc68bf85f on go-ozzo:master.

jodlajodla commented 6 years ago

Just to comment on two failed jobs on Travis CI - the problem is with Go 1.6 and Go 1.7 with the following message:

# github.com/asaskevich/govalidator
../../asaskevich/govalidator/types.go:27: undefined: sort.Slice

So the proposed changes don't have any impact on this - builds would probably also fail without any changes to the package at all.

qiangxue commented 6 years ago

Thank you for your contribution! Because #54 handles this already, I will close this PR.