format pretty-prints the duration value.
()
| 9 | |
| 10 | // format pretty-prints the duration value. |
| 11 | func (d *duration) pretty() string { |
| 12 | return fmt.Sprintf("Duration: %d", *d) |
| 13 | } |
| 14 | |
| 15 | // main is the entry point for the application. |
| 16 | func main() { |