formatPercent formats a float percentage with no decimal places
(pct float64)
| 15 | |
| 16 | // formatPercent formats a float percentage with no decimal places |
| 17 | func formatPercent(pct float64) string { |
| 18 | return fmt.Sprintf("%.0f%%", pct) |
| 19 | } |
| 20 | |
| 21 | // formatVolumeChange formats the volume change as a human-readable string |
| 22 | func formatVolumeChange(total1, total2 int) string { |
no outgoing calls
no test coverage detected