MCPcopy
hub / github.com/go-playground/validator / fieldError

Struct fieldError

errors.go:165–177  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

163// with other properties that may be needed for error message creation
164// it complies with the FieldError interface
165type 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.
180func (fe *fieldError) Tag() string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected