fieldError contains a single field's validation error along with other properties that may be needed for error message creation it complies with the FieldError interface
| 163 | // with other properties that may be needed for error message creation |
| 164 | // it complies with the FieldError interface |
| 165 | type fieldError struct { |
| 166 | v *Validate |
| 167 | tag string |
| 168 | actualTag string |
| 169 | ns string |
| 170 | structNs string |
| 171 | fieldLen uint8 |
| 172 | structfieldLen uint8 |
| 173 | value interface{} |
| 174 | param string |
| 175 | kind reflect.Kind |
| 176 | typ reflect.Type |
| 177 | } |
| 178 | |
| 179 | // Tag returns the validation tag that failed. |
| 180 | func (fe *fieldError) Tag() string { |
nothing calls this directly
no outgoing calls
no test coverage detected