Codebase list golang-github-vbauerster-mpb / e56f0b8
AverageSpeed: unit interface{} Vladimir Bauer 3 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
102102
103103 // AverageSpeed decorator with dynamic unit measure adjustment. It's
104104 // a wrapper of NewAverageSpeed.
105 func AverageSpeed(unit int, format string, wcc ...WC) Decorator {
105 func AverageSpeed(unit interface{}, format string, wcc ...WC) Decorator {
106106 return NewAverageSpeed(unit, format, time.Now(), wcc...)
107107 }
108108