var ( // DontEscape is a sentinel value for characters that don't need to be escaped. DontEscape = byte(255) // EncodeMap specifies how to escape binary data with '\'. EncodeMap byte // HexMap is a mapping from each byte to the `\x%%` hex form as a byte. HexMap byte // RawHexMap is a mapping from each byte to the `%%` hex form as a byte. RawHexMap byte )
EncodeEscapedChar is used internally to write out a character from a larger string that needs to be escaped to a buffer.
NeedEscape returns whether the given byte needs to be escaped.