diff --git a/example_test.go b/example_test.go index aefa932..900e544 100644 --- a/example_test.go +++ b/example_test.go @@ -22,7 +22,9 @@ p.RefreshRate(120 * time.Millisecond) // Add a bar. You're not limited to just one bar, add many if you need. - bar := p.AddBar(100).PrependName("Single Bar:", 0).AppendPercentage() + bar := p.AddBar(100). + PrependName("Single Bar:", 0, mpb.DwidthSync). + AppendPercentage(5, 0) for i := 0; i < 100; i++ { bar.Incr(1) // increment progress bar @@ -38,7 +40,7 @@ func ExampleBar_InProgress() { p := mpb.New(nil) - bar := p.AddBar(100).AppendPercentage() + bar := p.AddBar(100).AppendPercentage(5, 0) for bar.InProgress() { bar.Incr(1)