BarNoBrackets godoc
Vladimir Bauer
7 years ago
| 125 | 125 | // |
| 126 | 126 | // '+' refill rune, used when *Bar.SetRefill(int64) is called |
| 127 | 127 | // |
| 128 | // It's ok to provide first five runes only, for example mpb.BarStyle("╢▌▌░╟") | |
| 128 | // It's ok to provide first five runes only, for example mpb.BarStyle("╢▌▌░╟"). | |
| 129 | 129 | // To omit left and right edge runes use BarNoBrackets option. |
| 130 | 130 | func BarStyle(style string) BarOption { |
| 131 | 131 | chk := func(filler Filler) (interface{}, bool) { |
| 142 | 142 | } |
| 143 | 143 | |
| 144 | 144 | // BarNoBrackets omits left and right edge runes of the bar. Edges are |
| 145 | // brackets by default, hence the name of the option. | |
| 145 | // brackets in default bar style, hence the name of the option. | |
| 146 | 146 | func BarNoBrackets() BarOption { |
| 147 | 147 | chk := func(filler Filler) (interface{}, bool) { |
| 148 | 148 | t, ok := filler.(*barFiller) |