helper routines for reporting common errors during string formatting static validation and runtime execution.
(id int64, badType string)
| 605 | // runtime execution. |
| 606 | |
| 607 | func binaryFormatErrorV2(id int64, badType string) error { |
| 608 | return newFormatError(id, "only ints, uints, and bools can be formatted as binary, was given %s", badType) |
| 609 | } |
| 610 | |
| 611 | func decimalFormatErrorV2(id int64, badType string) error { |
| 612 | return newFormatError(id, "decimal clause can only be used on ints, uints, and doubles, was given %s", badType) |
no test coverage detected