Convenience function CountersNoUnit
Vladimir Bauer
8 years ago
| 84 | 84 | } |
| 85 | 85 | } |
| 86 | 86 | |
| 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 | ||
| 87 | 92 | // Counters provides basic counters decorator. |
| 88 | 93 | // pairFormat must contain two printf compatible verbs, like "%f" or "%d". |
| 89 | 94 | // First verb substituted with Current, second one with Total. For example (assuming decor.Unit_KiB used): |