helper routines for reporting common errors during string formatting static validation and runtime execution.
(id int64, badType string)
| 665 | // runtime execution. |
| 666 | |
| 667 | func binaryFormatError(id int64, badType string) error { |
| 668 | return newFormatError(id, "only integers and bools can be formatted as binary, was given %s", badType) |
| 669 | } |
| 670 | |
| 671 | func decimalFormatError(id int64, badType string) error { |
| 672 | return newFormatError(id, "decimal clause can only be used on integers, was given %s", badType) |
no test coverage detected