package
0.0.0-20201102054017-282493799a89
Repository: https://github.com/golangltd/leafltd.git
Documentation: pkg.go.dev

# Packages

Package utf32 provides the UTF-32 Unicode encoding.

# Functions

BOMOverride returns a new decoder transformer that is identical to fallback, except that the presence of a Byte Order Mark at the start of the input causes it to switch to the corresponding Unicode decoding.
UTF16 returns a UTF-16 Encoding for the given default endianness and byte order mark (BOM) policy.

# Constants

BigEndian is UTF-16BE.
ExpectBOM means that the UTF-16 form must start with a byte order mark, which will be used to override the default encoding.
IgnoreBOM means to ignore any byte order marks.
LittleEndian is UTF-16LE.
UseBOM means that the UTF-16 form may start with a byte order mark, which will be used to override the default encoding.

# Variables

All lists a configuration for each IANA-defined UTF-16 variant.
ErrMissingBOM means that decoding UTF-16 input with ExpectBOM did not find a starting byte order mark.
UTF8 is the UTF-8 encoding.

# Type aliases

BOMPolicy is a UTF-16 encoding's byte order mark policy.
Endianness is a UTF-16 encoding's default endianness.