Codebase list golang-github-vbauerster-mpb / 022d1b4
BarNoBrackets godoc Vladimir Bauer 7 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
125125 //
126126 // '+' refill rune, used when *Bar.SetRefill(int64) is called
127127 //
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("╢▌▌░╟").
129129 // To omit left and right edge runes use BarNoBrackets option.
130130 func BarStyle(style string) BarOption {
131131 chk := func(filler Filler) (interface{}, bool) {
142142 }
143143
144144 // 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.
146146 func BarNoBrackets() BarOption {
147147 chk := func(filler Filler) (interface{}, bool) {
148148 t, ok := filler.(*barFiller)