Codebase list golang-github-vbauerster-mpb / d75dec7
readme: v7 api Vladimir Bauer 5 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
2525 "math/rand"
2626 "time"
2727
28 "github.com/vbauerster/mpb/v6"
29 "github.com/vbauerster/mpb/v6/decor"
28 "github.com/vbauerster/mpb/v7"
29 "github.com/vbauerster/mpb/v7/decor"
3030 )
3131
3232 func main() {
3838 // adding a single bar, which will inherit container's width
3939 bar := p.Add(int64(total),
4040 // progress bar filler with customized style
41 mpb.NewBarFiller("╢▌▌░╟"),
41 mpb.NewBarFiller(mpb.BarStyle().Lbound("╢").Filler("▌").Tip("▌").Padding("░").Rbound("╟")),
4242 mpb.PrependDecorators(
4343 // display our name with one space on the right
4444 decor.Name(name, decor.WC{W: len(name) + 1, C: decor.DidentRight}),