MCPcopy Create free account
hub / github.com/OverloadBlitz/cloudcent-cli / formatRange

Function formatRange

internal/estimate/print.go:680–688  ·  view source on GitHub ↗

formatRange formats a range value for display, turning "Inf" into "∞" and adding thousand separators for large numbers.

(s string)

Source from the content-addressed store, hash-verified

678// formatRange formats a range value for display, turning "Inf" into "∞"
679// and adding thousand separators for large numbers.
680func 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,

Callers 1

renderTieredPricesTableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected