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
How can I get a incorrect value or validation parameters? #139
I need to return user-friendly errors for example 'test' is out of range ('foo', 'bar'). I tried to use custom errors for change message but I cannot get validation parameters and validated value. Something like that was implemented in Length validation.
Hello
I need to return user-friendly errors for example
'test' is out of range ('foo', 'bar')
. I tried to use custom errors for change message but I cannot get validation parameters and validated value. Something like that was implemented in Length validation.