String returns a string representation of a Duration.
()
| 348 | |
| 349 | // String returns a string representation of a Duration. |
| 350 | func (d Duration) String() string { |
| 351 | var buf bytes.Buffer |
| 352 | d.Format(&buf) |
| 353 | return buf.String() |
| 354 | } |
| 355 | |
| 356 | // StringNanos returns a string representation of a Duration including |
| 357 | // its hidden nanoseconds value. To be used only by the encoding/decoding |
no test coverage detected