Codebase list golang-github-vbauerster-mpb / 3832d21
use custom bar format Vladimir Bauer 9 years ago
1 changed file(s) with 3 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
1414 // If you don't plan to cancel, feed with nil
1515 // otherwise provide context.Context, see cancel example
1616 p := mpb.New(nil)
17 // Set custom format, the default one is "[=>-]"
18 p.Format("╢▌▌░╟")
19
1720 bar := p.AddBar(100).PrependName(name, 0).AppendPercentage()
1821
1922 for i := 0; i < 100; i++ {