String returns a string representation of a Duration.
()
| 654 | |
| 655 | // String returns a string representation of a Duration. |
| 656 | func (d Duration) String() string { |
| 657 | var buf bytes.Buffer |
| 658 | d.Format(&buf) |
| 659 | return buf.String() |
| 660 | } |
| 661 | |
| 662 | // ISO8601String returns an ISO 8601 representation ('P1Y2M3DT4H') of a Duration. |
| 663 | func (d Duration) ISO8601String() string { |
no test coverage detected