IsZero returns true if the Duration is the zero value.
()
| 16 | |
| 17 | // IsZero returns true if the Duration is the zero value. |
| 18 | func (d Duration) IsZero() bool { |
| 19 | return d.Duration == 0 |
| 20 | } |
| 21 | |
| 22 | // MarshalYAML implements yaml.Marshaler |
| 23 | func (d Duration) MarshalYAML() (interface{}, error) { |
no outgoing calls