WithShowTimer shows how long the spinner is running.
(b ...bool)
| 90 | |
| 91 | // WithShowTimer shows how long the spinner is running. |
| 92 | func (s SpinnerPrinter) WithShowTimer(b ...bool) *SpinnerPrinter { |
| 93 | s.ShowTimer = internal.WithBoolean(b) |
| 94 | return &s |
| 95 | } |
| 96 | |
| 97 | // WithStartedAt sets the time when the SpinnerPrinter started. |
| 98 | func (s SpinnerPrinter) WithStartedAt(t time.Time) *SpinnerPrinter { |