MCPcopy Index your code
hub / github.com/go-playground/validator / StructValidationTestStructSuccess

Function StructValidationTestStructSuccess

validator_test.go:263–269  ·  view source on GitHub ↗
(sl StructLevel)

Source from the content-addressed store, hash-verified

261}
262
263func StructValidationTestStructSuccess(sl StructLevel) {
264 st := sl.Current().Interface().(TestStruct)
265
266 if st.String != "good value" {
267 sl.ReportError(st.String, "StringVal", "String", "badvalueteststruct", "good value")
268 }
269}
270
271func StructValidationTestStruct(sl StructLevel) {
272 st := sl.Current().Interface().(TestStruct)

Callers

nothing calls this directly

Calls 2

CurrentMethod · 0.65
ReportErrorMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…