internal/encoder/escape_control_legacy.go
raw| 1 | //go:build !go1.22 |
| 2 | |
| 3 | package encoder |
| 4 | |
| 5 | // backspaceEscape and formFeedEscape are the escapes of the backspace and the form feed: encoding/json before Go |
| 6 | // 1.22 writes them as the other control characters, by their code. |
| 7 | const ( |
| 8 | backspaceEscape = `\u0008` |
| 9 | formFeedEscape = `\u000c` |
| 10 | ) |