README update: StaticName/DynamicName
Vladimir Bauer
8 years ago
| 52 | 52 |
bar := p.AddBar(int64(total),
|
| 53 | 53 |
// Prepending decorators
|
| 54 | 54 |
mpb.PrependDecorators(
|
| 55 | |
// Name decorator with minWidth and no width sync options
|
|
55 |
// StaticName decorator with minWidth and no width sync options
|
|
56 |
// If you need to change name while rendering, use DynamicName
|
| 56 | 57 |
decor.Name(name, len(name), 0),
|
| 57 | 58 |
// ETA decorator with minWidth and width sync options
|
| 58 | 59 |
// DSyncSpace is shortcut for DwidthSync|DextraSpace
|
| 24 | 24 |
bar := p.AddBar(int64(total),
|
| 25 | 25 |
// Prepending decorators
|
| 26 | 26 |
mpb.PrependDecorators(
|
| 27 | |
// Name decorator with minWidth and no width sync options
|
|
27 |
// StaticName decorator with minWidth and no width sync options
|
|
28 |
// If you need to change name while rendering, use DynamicName
|
| 28 | 29 |
decor.Name(name, len(name), 0),
|
| 29 | 30 |
// ETA decorator with minWidth and width sync options
|
| 30 | 31 |
// DSyncSpace is shortcut for DwidthSync|DextraSpace
|
| 24 | 24 |
bar := p.AddBar(int64(total),
|
| 25 | 25 |
// Prepending decorators
|
| 26 | 26 |
mpb.PrependDecorators(
|
| 27 | |
// Name decorator with minWidth and no width sync options
|
| 28 | |
decor.Name(name, len(name), 0),
|
|
27 |
// StaticName decorator with minWidth and no width sync options
|
|
28 |
// If you need to change name while rendering, use DynamicName
|
|
29 |
decor.StaticName(name, len(name), 0),
|
| 29 | 30 |
// ETA decorator with minWidth and width sync options
|
| 30 | 31 |
// DSyncSpace is shortcut for DwidthSync|DextraSpace
|
| 31 | 32 |
decor.ETA(4, decor.DSyncSpace),
|