Codebase list golang-github-vbauerster-mpb / b53c5f0
readme update Vladimir Bauer 7 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
3030 p := mpb.New(
3131 // override default (80) width
3232 mpb.WithWidth(64),
33 // override default "[=>-]" format
34 mpb.WithFormat("╢▌▌░╟"),
3533 // override default 120ms refresh rate
3634 mpb.WithRefreshRate(180*time.Millisecond),
3735 )
4038 name := "Single Bar:"
4139 // adding a single bar
4240 bar := p.AddBar(int64(total),
41 // override default "[=>-]" style
42 mpb.BarStyle("╢▌▌░╟"),
4343 mpb.PrependDecorators(
4444 // display our name with one space on the right
4545 decor.Name(name, decor.WC{W: len(name) + 1, C: decor.DidentRight}),