IsValid returns true if there are no errors
()
| 33 | |
| 34 | // IsValid returns true if there are no errors |
| 35 | func (vr *ValidationResult) IsValid() bool { |
| 36 | return vr.Errors == 0 |
| 37 | } |
| 38 | |
| 39 | // HasWarnings returns true if there are warnings |
| 40 | func (vr *ValidationResult) HasWarnings() bool { |
no outgoing calls