(val float64)
| 148 | } |
| 149 | |
| 150 | func DollarsMaxPrecision(val float64) string { |
| 151 | return "$" + Round(val, 100, 2) |
| 152 | } |
| 153 | |
| 154 | // This is similar to json.Marshal, but handles non-string keys (which we support). It should be valid YAML since we use it in templates |
| 155 | func strIndent(val interface{}, indent string, currentIndent string, newlineChar string, quoteStr string) string { |