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

Method StructField

errors.go:127–127  ·  view source on GitHub ↗

StructField returns the field's actual name from the struct, when able to determine. eg. "FirstName" see Field for comparison

()

Source from the content-addressed store, hash-verified

125 // eg. "FirstName"
126 // see Field for comparison
127 StructField() string
128
129 // Value returns the actual field's value in case needed for creating the error
130 // message

Callers 11

AssertErrorFunction · 0.95
AssertDeepErrorFunction · 0.95
TestNameNamespaceFunction · 0.65
TestAnonymousFunction · 0.65
TestMapDiveValidationFunction · 0.65
mainFunction · 0.65
validateStructFunction · 0.65

Implementers 1

fieldErrorerrors.go

Calls

no outgoing calls

Tested by 9

AssertErrorFunction · 0.76
AssertDeepErrorFunction · 0.76
TestNameNamespaceFunction · 0.52
TestAnonymousFunction · 0.52
TestMapDiveValidationFunction · 0.52