Revert "singleBar example: Inclusive"
This reverts commit 4ebfac49717f01ce164941c2347213bf81239462.
Vladimir Bauer
4 years ago
| 36 | 36 |
|
| 37 | 37 |
total := 100
|
| 38 | 38 |
name := "Single Bar:"
|
| 39 | |
style := mpb.BarStyle().Lbound("╢").Filler("▌").Tip("▌").Padding("░").Rbound("╟").Inclusive(0)
|
| 40 | 39 |
// adding a single bar, which will inherit container's width
|
| 41 | 40 |
bar := p.Add(int64(total),
|
| 42 | 41 |
// progress bar filler with customized style
|
| 43 | |
mpb.NewBarFiller(style),
|
|
42 |
mpb.NewBarFiller(mpb.BarStyle().Lbound("╢").Filler("▌").Tip("▌").Padding("░").Rbound("╟")),
|
| 44 | 43 |
mpb.PrependDecorators(
|
| 45 | 44 |
// display our name with one space on the right
|
| 46 | 45 |
decor.Name(name, decor.WC{W: len(name) + 1, C: decor.DidentRight}),
|
| 13 | 13 |
|
| 14 | 14 |
total := 100
|
| 15 | 15 |
name := "Single Bar:"
|
| 16 | |
style := mpb.BarStyle().Lbound("╢").Filler("▌").Tip("▌").Padding("░").Rbound("╟").Inclusive(0)
|
| 17 | 16 |
// adding a single bar, which will inherit container's width
|
| 18 | 17 |
bar := p.Add(int64(total),
|
| 19 | 18 |
// progress bar filler with customized style
|
| 20 | |
mpb.NewBarFiller(style),
|
|
19 |
mpb.NewBarFiller(mpb.BarStyle().Lbound("╢").Filler("▌").Tip("▌").Padding("░").Rbound("╟")),
|
| 21 | 20 |
mpb.PrependDecorators(
|
| 22 | 21 |
// display our name with one space on the right
|
| 23 | 22 |
decor.Name(name, decor.WC{W: len(name) + 1, C: decor.DidentRight}),
|