String implements formatStringInterpolatorV2.String.
(arg ref.Val)
| 456 | |
| 457 | // String implements formatStringInterpolatorV2.String. |
| 458 | func (c *stringFormatCheckerV2) String(arg ref.Val) (string, error) { |
| 459 | formatArg := c.args[c.currArgIndex] |
| 460 | valid, badID := c.verifyString(formatArg) |
| 461 | if !valid { |
| 462 | return "", stringFormatErrorV2(badID, c.typeOf(badID).TypeName()) |
| 463 | } |
| 464 | return "", nil |
| 465 | } |
| 466 | |
| 467 | // Decimal implements formatStringInterpolatorV2.Decimal. |
| 468 | func (c *stringFormatCheckerV2) Decimal(arg ref.Val) (string, error) { |
nothing calls this directly
no test coverage detected