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 function to get the value of the json tag for a field in a struct #176

Closed slessard closed 1 year ago

slessard commented 1 year ago

This enables the use-case where a mutual exclusion validation rule needs to know the name of a field other than the field currently being validated