Codebase list golang-github-vbauerster-mpb / a38741e
Same comment as in readme Vladimir Bauer 8 years ago
1 changed file(s) with 4 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
1919
2020 total := 100
2121 name := "Single Bar:"
22 // Add a bar. You're not limited to just one bar, add many if you need.
22 // Add a bar
23 // You're not limited to just a single bar, add as many as you need
2324 bar := p.AddBar(int64(total),
2425 // Prepending decorators
2526 mpb.PrependDecorators(
2627 // Name decorator with minWidth and no width sync options
2728 decor.Name(name, len(name), 0),
28 // ETA decorator with minWidth and width sync options DwidthSync|DextraSpace
29 // ETA decorator with minWidth and width sync options
30 // DSyncSpace is shortcut for DwidthSync|DextraSpace
2931 decor.ETA(4, decor.DSyncSpace),
3032 ),
3133 // Appending decorators