Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UTF8Raw encoding.Encoding = utf8raw{}
UTF8Raw is a variant of the UTF-8 encoding without replacing invalid UTF-8 sequences. It behaves in the same way as encoding.Nop, but is differentiated from nop encoding, which we treat in a special way.
Functions ¶
func DecodeAsString ¶ added in v0.120.0
DecodeAsString converts the given encoded bytes using the given decoder. It returns the converted bytes or nil, err if any error occurred.
func UnsafeBytesAsString ¶ added in v0.120.0
UnsafeBytesAsString converts the byte array to string. This function must be called iff the input buffer is not going to be re-used after.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.