in cost-optimization/gke-shift-left-cost/api/cost.go [358:369]
func percDiff(perc float64) string {
if perc != 0 {
percFormated := fmt.Sprintf("%.2f%%", perc)
if perc > 0 {
return fmt.Sprintf("**+%s (%s)**", percFormated, upArrow)
} else if perc < 0 {
return fmt.Sprintf("%s (%s)", percFormated, downArrow)
}
return percFormated
}
return " "
}