String implements formatStringInterpolator.String.
(arg ref.Val, locale string)
| 515 | |
| 516 | // String implements formatStringInterpolator.String. |
| 517 | func (c *stringFormatChecker) String(arg ref.Val, locale string) (string, error) { |
| 518 | formatArg := c.args[c.currArgIndex] |
| 519 | valid, badID := c.verifyString(formatArg) |
| 520 | if !valid { |
| 521 | return "", stringFormatError(badID, c.typeOf(badID).TypeName()) |
| 522 | } |
| 523 | return "", nil |
| 524 | } |
| 525 | |
| 526 | // Decimal implements formatStringInterpolator.Decimal. |
| 527 | func (c *stringFormatChecker) Decimal(arg ref.Val, locale string) (string, error) { |
nothing calls this directly
no test coverage detected