NewSpinnerFiller godoc
Vladimir Bauer
5 years ago
| 27 | 27 | alignment SpinnerAlignment |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | // NewSpinnerFiller returns a BarFiller implementation which renders a spinner. | |
| 31 | // To be used with *Progress.Add(...) *Bar method. | |
| 30 | // NewSpinnerFiller returns a BarFiller implementation which renders | |
| 31 | // a spinner. If style is nil or zero length, SpinnerDefaultStyle is | |
| 32 | // applied. To be used with `*Progress.Add(...) *Bar` method. | |
| 32 | 33 | func NewSpinnerFiller(style []string, alignment SpinnerAlignment) BarFiller { |
| 33 | 34 | if len(style) == 0 { |
| 34 | 35 | style = DefaultSpinnerStyle |