(sl StructLevel)
| 261 | } |
| 262 | |
| 263 | func 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 | |
| 271 | func StructValidationTestStruct(sl StructLevel) { |
| 272 | st := sl.Current().Interface().(TestStruct) |
nothing calls this directly
no test coverage detected
searching dependent graphs…