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

# Packages

Package charmap provides simple character encodings such as IBM Code Page 437 and Windows 1252.
Package htmlindex maps character set encoding names to Encodings as recommended by the W3C for use in HTML 5.
Package ianaindex maps names to Encodings as specified by the IANA registry.
Package japanese provides Japanese encodings such as EUC-JP and Shift JIS.
Package korean provides Korean encodings such as EUC-KR.
Package simplifiedchinese provides Simplified Chinese encodings such as GBK.
Package traditionalchinese provides Traditional Chinese encodings such as Big5.
Package unicode provides Unicode encodings such as UTF-16.

# Functions

HTMLEscapeUnsupported wraps encoders to replace source runes outside the repertoire of the destination encoding with HTML escape sequences.
ReplaceUnsupported wraps encoders to replace source runes outside the repertoire of the destination encoding with an encoding-specific replacement.

# Constants

ASCIISub is the ASCII substitute character, as recommended by http://unicode.org/reports/tr36/#Text_Comparison.

# Variables

ErrInvalidUTF8 means that a transformer encountered invalid UTF-8.
Nop is the nop encoding.
Replacement is the replacement encoding.
UTF8Validator is a transformer that returns ErrInvalidUTF8 on the first input byte that is not valid UTF-8.

# Structs

A Decoder converts bytes to UTF-8.
An Encoder converts bytes from UTF-8.

# Interfaces

Encoding is a character set encoding that can be transformed to and from UTF-8.