spinTipBar example: Inclusive
Vladimir Bauer
4 years ago
| 14 | 14 | total := 100 |
| 15 | 15 | name := "Single Bar:" |
| 16 | 16 | bar := p.Add(int64(total), |
| 17 | mpb.NewBarFiller(mpb.BarStyle().Tip(`-`, `\`, `|`, `/`)), | |
| 17 | mpb.NewBarFiller(mpb.BarStyle().Tip(`-`, `\`, `|`, `/`).Inclusive(2)), | |
| 18 | 18 | mpb.PrependDecorators(decor.Name(name)), |
| 19 | 19 | mpb.AppendDecorators(decor.Percentage()), |
| 20 | 20 | ) |