formatRange formats a range value for display, turning "Inf" into "∞" and adding thousand separators for large numbers.
(s string)
| 678 | // formatRange formats a range value for display, turning "Inf" into "∞" |
| 679 | // and adding thousand separators for large numbers. |
| 680 | func formatRange(s string) string { |
| 681 | if s == "" { |
| 682 | return "-" |
| 683 | } |
| 684 | if strings.EqualFold(s, "inf") || strings.EqualFold(s, "infinity") { |
| 685 | return "∞" |
| 686 | } |
| 687 | return s |
| 688 | } |
| 689 | |
| 690 | // renderTotalsTable renders a summary table in the style of the design mockup: |
| 691 | // each billable resource gets one row (name + sub_label left, pulumi type muted, |
no outgoing calls
no test coverage detected