Codebase list golang-github-vbauerster-mpb / 71923f2
Convenience function CountersNoUnit Vladimir Bauer 8 years ago
1 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
8484 }
8585 }
8686
87 // CountersNoUnit returns raw counters decorator
88 func CountersNoUnit(pairFormat string, minWidth int, conf byte) DecoratorFunc {
89 return Counters(pairFormat, 0, minWidth, conf)
90 }
91
8792 // Counters provides basic counters decorator.
8893 // pairFormat must contain two printf compatible verbs, like "%f" or "%d".
8994 // First verb substituted with Current, second one with Total. For example (assuming decor.Unit_KiB used):