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
showing '-' as field name in error for hidden fields #140
I'm validating a User struct whose password field is not exposed to the client. This is my user struct
and when validation fails for Password field it returns error as:
Is there any way so that i can pass field name to it ?