edit comment
Vladimir Bauer
6 years ago
| 127 | 127 | } |
| 128 | 128 | } |
| 129 | 129 | |
| 130 | // BarStyle overrides mpb.DefaultBarStyle, for example BarStyle("╢▌▌░╟"). | |
| 131 | // If you need to override `reverse tip` and `refill rune` set 6th and | |
| 132 | // 7th rune respectively, for example mpb.BarStyle("[=>-]<+"). | |
| 130 | // BarStyle overrides mpb.DefaultBarStyle which is "[=>-]<+". | |
| 131 | // It's ok to pass string containing 5 runes only, for example "╢▌▌░╟", | |
| 132 | // if you don't need to override '<' (reverse tip) and '+' (refill rune). | |
| 133 | 133 | func BarStyle(style string) BarOption { |
| 134 | 134 | if style == "" { |
| 135 | 135 | return nil |