diff --git a/README.md b/README.md index 3e304cf..d445059 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,8 @@ bar := p.AddBar(int64(total), // Prepending decorators mpb.PrependDecorators( - // Name decorator with minWidth and no width sync options + // StaticName decorator with minWidth and no width sync options + // If you need to change name while rendering, use DynamicName decor.Name(name, len(name), 0), // ETA decorator with minWidth and width sync options // DSyncSpace is shortcut for DwidthSync|DextraSpace diff --git a/example_test.go b/example_test.go index 188c863..de19965 100644 --- a/example_test.go +++ b/example_test.go @@ -25,7 +25,8 @@ bar := p.AddBar(int64(total), // Prepending decorators mpb.PrependDecorators( - // Name decorator with minWidth and no width sync options + // StaticName decorator with minWidth and no width sync options + // If you need to change name while rendering, use DynamicName decor.Name(name, len(name), 0), // ETA decorator with minWidth and width sync options // DSyncSpace is shortcut for DwidthSync|DextraSpace diff --git a/examples/singleBar/main.go b/examples/singleBar/main.go index df79300..1a49b89 100644 --- a/examples/singleBar/main.go +++ b/examples/singleBar/main.go @@ -25,8 +25,9 @@ bar := p.AddBar(int64(total), // Prepending decorators mpb.PrependDecorators( - // Name decorator with minWidth and no width sync options - decor.Name(name, len(name), 0), + // StaticName decorator with minWidth and no width sync options + // If you need to change name while rendering, use DynamicName + decor.StaticName(name, len(name), 0), // ETA decorator with minWidth and width sync options // DSyncSpace is shortcut for DwidthSync|DextraSpace decor.ETA(4, decor.DSyncSpace),