Octal implements formatStringInterpolator.Octal.
(arg ref.Val, locale string)
| 582 | |
| 583 | // Octal implements formatStringInterpolator.Octal. |
| 584 | func (c *stringFormatChecker) Octal(arg ref.Val, locale string) (string, error) { |
| 585 | id := c.args[c.currArgIndex].ID() |
| 586 | valid := c.verifyTypeOneOf(id, types.IntType, types.UintType) |
| 587 | if !valid { |
| 588 | return "", octalFormatError(id, c.typeOf(id).TypeName()) |
| 589 | } |
| 590 | return "", nil |
| 591 | } |
| 592 | |
| 593 | // Arg implements formatListArgs.Arg. |
| 594 | func (c *stringFormatChecker) Arg(index int64) (ref.Val, error) { |
nothing calls this directly
no test coverage detected