Codebase list golang-github-vbauerster-mpb / 7b33591
Revert "singleBar example: Inclusive" This reverts commit 4ebfac49717f01ce164941c2347213bf81239462. Vladimir Bauer 4 years ago
2 changed file(s) with 2 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
3636
3737 total := 100
3838 name := "Single Bar:"
39 style := mpb.BarStyle().Lbound("╢").Filler("▌").Tip("▌").Padding("░").Rbound("╟").Inclusive(0)
4039 // adding a single bar, which will inherit container's width
4140 bar := p.Add(int64(total),
4241 // progress bar filler with customized style
43 mpb.NewBarFiller(style),
42 mpb.NewBarFiller(mpb.BarStyle().Lbound("╢").Filler("▌").Tip("▌").Padding("░").Rbound("╟")),
4443 mpb.PrependDecorators(
4544 // display our name with one space on the right
4645 decor.Name(name, decor.WC{W: len(name) + 1, C: decor.DidentRight}),
1313
1414 total := 100
1515 name := "Single Bar:"
16 style := mpb.BarStyle().Lbound("╢").Filler("▌").Tip("▌").Padding("░").Rbound("╟").Inclusive(0)
1716 // adding a single bar, which will inherit container's width
1817 bar := p.Add(int64(total),
1918 // progress bar filler with customized style
20 mpb.NewBarFiller(style),
19 mpb.NewBarFiller(mpb.BarStyle().Lbound("╢").Filler("▌").Tip("▌").Padding("░").Rbound("╟")),
2120 mpb.PrependDecorators(
2221 // display our name with one space on the right
2322 decor.Name(name, decor.WC{W: len(name) + 1, C: decor.DidentRight}),