(sl StructLevel)
| 331 | } |
| 332 | |
| 333 | func StructLevelInvalidError(sl StructLevel) { |
| 334 | top := sl.Top().Interface().(StructLevelInvalidErr) |
| 335 | s := sl.Current().Interface().(StructLevelInvalidErr) |
| 336 | |
| 337 | if top.Value == s.Value { |
| 338 | sl.ReportError(nil, "Value", "Value", "required", "") |
| 339 | } |
| 340 | } |
| 341 | |
| 342 | func stringPtr(v string) *string { |
| 343 | return &v |
nothing calls this directly
no test coverage detected
searching dependent graphs…