Namespace returns the namespace for the field error, with the tag name taking precedence over the field's actual name. eg. JSON name "User.fname" See StructNamespace() for a version that returns actual names. NOTE: this field can be blank when validating a single primitive field using validate.Fi
()
| 101 | // NOTE: this field can be blank when validating a single primitive field |
| 102 | // using validate.Field(...) as there is no way to extract it's name |
| 103 | Namespace() string |
| 104 | |
| 105 | // StructNamespace returns the namespace for the field error, with the field's |
| 106 | // actual name. |
no outgoing calls