()
| 29 | } |
| 30 | |
| 31 | func (r resultMsg) String() string { |
| 32 | if r.duration == 0 { |
| 33 | return dotStyle.Render(strings.Repeat(".", 30)) |
| 34 | } |
| 35 | return fmt.Sprintf("🍔 Ate %s %s", r.food, |
| 36 | durationStyle.Render(r.duration.String())) |
| 37 | } |
| 38 | |
| 39 | type model struct { |
| 40 | spinner spinner.Model |
no test coverage detected