Codebase list golang-github-vbauerster-mpb / cf77de9
internal: add missing godoc for completeness Vladimir Bauer 5 years ago
2 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
1212 return float64(int64(width)*current) / float64(total)
1313 }
1414
15 // PercentageRound same as Percentage but with math.Round.
1516 func PercentageRound(total, current int64, width int) float64 {
1617 return math.Round(Percentage(total, current, width))
1718 }
00 package internal
11
2 // Predicate helper for internal use.
23 func Predicate(pick bool) func() bool {
34 return func() bool { return pick }
45 }