Codebase list golang-github-vbauerster-mpb / c0baab4
example test upd Vladimir Bauer 5 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
1717 total := 100
1818 name := "Single Bar:"
1919 // adding a single bar, which will inherit container's width
20 bar := p.AddBar(int64(total),
21 // override DefaultBarStyle, which is "[=>-]<+"
22 mpb.BarStyle("╢▌▌░╟"),
20 bar := p.Add(int64(total),
21 // progress bar filler with customized style
22 mpb.NewBarFiller("╢▌▌░╟"),
2323 mpb.PrependDecorators(
2424 // display our name with one space on the right
2525 decor.Name(name, decor.WC{W: len(name) + 1, C: decor.DidentRight}),