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

Function normalizePrice

internal/tui/views/pricing.go:768–774  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

766}
767
768func normalizePrice(s string) string {
769 t := strings.TrimSpace(s)
770 if strings.EqualFold(t, "na") || strings.EqualFold(t, "n/a") || t == "-" || t == "" {
771 return "0.0"
772 }
773 return t
774}
775
776// ─── Rendering ────────────────────────────────────────────────────────────────
777

Callers 1

ConvertResponseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected