Documentation ¶ Overview ¶ Package charset provides common text encodings for HTML documents. The mapping from encoding labels to encodings is defined at http://encoding.spec.whatwg.org. Index ¶ func Lookup(label string) (e encoding.Encoding, name string) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Lookup ¶ func Lookup(label string) (e encoding.Encoding, name string) Lookup returns the encoding with the specified label, and its canonical name. It returns nil and the empty string if label is not one of the standard encodings for HTML. Matching is case-insensitive and ignores leading and trailing whitespace. Types ¶ This section is empty. Source Files ¶ View all Source files charset.go table.go Click to show internal directories. Click to hide internal directories.