Codebase list golang-github-vbauerster-mpb / 56351f6
counters pairFmt examples Vladimir Bauer 6 years ago
1 changed file(s) with 5 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
3434 //
3535 // `wcc` optional WC config
3636 //
37 // pairFmt example if UnitKB is chosen:
37 // pairFmt example if unit=UnitKB:
3838 //
39 // "%.1f / %.1f" = "1.0MB / 12.0MB" or "% .1f / % .1f" = "1.0 MB / 12.0 MB"
39 // pairFmt="%.1f / %.1f" output: "1.0MB / 12.0MB"
40 // pairFmt="% .1f / % .1f" output: "1.0 MB / 12.0 MB"
41 // pairFmt="%d / %d" output: "1MB / 12MB"
42 // pairFmt="% d / % d" output: "1 MB / 12 MB"
4043 //
4144 func Counters(unit int, pairFmt string, wcc ...WC) Decorator {
4245 var wc WC