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

Method ReportError

struct_level.go:55–55  ·  view source on GitHub ↗

ReportError reports an error just by passing the field and tag information NOTES: fieldName and structFieldName get appended to the existing namespace that validator is on. e.g. pass 'FirstName' or 'Names[0]' depending on the nesting tag can be an existing validation tag or just something you mak

(field interface{}, fieldName, structFieldName string, tag, param string)

Source from the content-addressed store, hash-verified

53 // tag can be an existing validation tag or just something you make up
54 // and process on the flip side it's up to you.
55 ReportError(field interface{}, fieldName, structFieldName string, tag, param string)
56
57 // ReportValidationErrors reports an error just by passing ValidationErrors
58 //

Implementers 1

validatevalidator.go

Calls

no outgoing calls