(sl StructLevel)
| 269 | } |
| 270 | |
| 271 | func StructValidationTestStruct(sl StructLevel) { |
| 272 | st := sl.Current().Interface().(TestStruct) |
| 273 | |
| 274 | if st.String != "bad value" { |
| 275 | sl.ReportError(st.String, "StringVal", "String", "badvalueteststruct", "bad value") |
| 276 | } |
| 277 | } |
| 278 | |
| 279 | func StructValidationNoTestStructCustomName(sl StructLevel) { |
| 280 | st := sl.Current().Interface().(TestStruct) |
nothing calls this directly
no test coverage detected
searching dependent graphs…