(percent float64)
| 90 | } |
| 91 | |
| 92 | func (b *ProgressBar) createBar(percent float64) string { |
| 93 | barCount := int(percent / 5.0) |
| 94 | if barCount > 20 { |
| 95 | barCount = 20 |
| 96 | } |
| 97 | return strings.Repeat("█", barCount) + strings.Repeat(" ", 20-barCount) |
| 98 | } |
| 99 | |
| 100 | func (b *ProgressBar) formatBytes(count int64) (string, string) { |
| 101 | if count < 1000 { |
no outgoing calls
no test coverage detected