internal: add missing godoc for completeness
Vladimir Bauer
5 years ago
| 12 | 12 |
return float64(int64(width)*current) / float64(total)
|
| 13 | 13 |
}
|
| 14 | 14 |
|
|
15 |
// PercentageRound same as Percentage but with math.Round.
|
| 15 | 16 |
func PercentageRound(total, current int64, width int) float64 {
|
| 16 | 17 |
return math.Round(Percentage(total, current, width))
|
| 17 | 18 |
}
|
| 0 | 0 |
package internal
|
| 1 | 1 |
|
|
2 |
// Predicate helper for internal use.
|
| 2 | 3 |
func Predicate(pick bool) func() bool {
|
| 3 | 4 |
return func() bool { return pick }
|
| 4 | 5 |
}
|