diff --git a/README.md b/README.md index 761bc81..400d795 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,10 @@ name := fmt.Sprintf("Bar#%d:", i) bar := p.AddBar(100). PrependName(name, len(name), 0). - AppendPercentage(5, 0) + // Prepend Percentage decorator and sync width + PrependPercentage(3, mpb.DwidthSync|mpb.DextraSpace). + // Append ETA and don't sync width + AppendETA(2, 0) go func() { defer wg.Done() // you can p.AddBar() here, but ordering will be non deterministic diff --git a/example/gifs/simple.gif b/example/gifs/simple.gif index aa4b350..1f547e0 100644 Binary files a/example/gifs/simple.gif and b/example/gifs/simple.gif differ diff --git a/example/simple/main.go b/example/simple/main.go index 4bdfda7..ec841e5 100644 --- a/example/simple/main.go +++ b/example/simple/main.go @@ -17,7 +17,10 @@ name := fmt.Sprintf("Bar#%d:", i) bar := p.AddBar(100). PrependName(name, len(name), 0). - AppendPercentage(5, 0) + // Prepend Percentage decorator and sync width + PrependPercentage(3, mpb.DwidthSync|mpb.DextraSpace). + // Append ETA and don't sync width + AppendETA(2, 0) go func() { defer wg.Done() // you can p.AddBar() here, but ordering will be non deterministic