Codebase list golang-github-vbauerster-mpb / 2c82367
DefaultBarStyle Vladimir Bauer 6 years ago
3 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
3636 name := "Single Bar:"
3737 // adding a single bar, which will inherit container's width
3838 bar := p.AddBar(int64(total),
39 // override mpb.DefaultBarStyle, which is "[=>-]<+"
39 // override DefaultBarStyle, which is "[=>-]<+"
4040 mpb.BarStyle("╢▌▌░╟"),
4141 mpb.PrependDecorators(
4242 // display our name with one space on the right
1515 name := "Single Bar:"
1616 // adding a single bar, which will inherit container's width
1717 bar := p.AddBar(int64(total),
18 // override mpb.DefaultBarStyle, which is "[=>-]<+"
18 // override DefaultBarStyle, which is "[=>-]<+"
1919 mpb.BarStyle("╢▌▌░╟"),
2020 mpb.PrependDecorators(
2121 // display our name with one space on the right
1818 name := "Single Bar:"
1919 // adding a single bar, which will inherit container's width
2020 bar := p.AddBar(int64(total),
21 // set custom bar style, default one is "[=>-]"
21 // override DefaultBarStyle, which is "[=>-]<+"
2222 mpb.BarStyle("╢▌▌░╟"),
2323 mpb.PrependDecorators(
2424 // display our name with one space on the right