Codebase list golang-github-vbauerster-mpb / 75ee07d
README update: StaticName/DynamicName Vladimir Bauer 8 years ago
3 changed file(s) with 7 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
5252 bar := p.AddBar(int64(total),
5353 // Prepending decorators
5454 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
5657 decor.Name(name, len(name), 0),
5758 // ETA decorator with minWidth and width sync options
5859 // DSyncSpace is shortcut for DwidthSync|DextraSpace
2424 bar := p.AddBar(int64(total),
2525 // Prepending decorators
2626 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
2829 decor.Name(name, len(name), 0),
2930 // ETA decorator with minWidth and width sync options
3031 // DSyncSpace is shortcut for DwidthSync|DextraSpace
2424 bar := p.AddBar(int64(total),
2525 // Prepending decorators
2626 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),
2930 // ETA decorator with minWidth and width sync options
3031 // DSyncSpace is shortcut for DwidthSync|DextraSpace
3132 decor.ETA(4, decor.DSyncSpace),