Back to godoc.org
golang.org/x/text/encoding/htmlindex

package htmlindex

v0.3.2
Latest Go to latest
Published: Apr 25, 2019 | License: BSD-3-Clause | Module: golang.org/x/text

Overview

Package htmlindex maps character set encoding names to Encodings as recommended by the W3C for use in HTML 5. See http://www.w3.org/TR/encoding.

Index

func Get

func Get(name string) (encoding.Encoding, error)

Get returns an Encoding for one of the names listed in http://www.w3.org/TR/encoding using the Default Index. Matching is case- insensitive.

func LanguageDefault

func LanguageDefault(tag language.Tag) string

LanguageDefault returns the canonical name of the default encoding for a given language.

func Name

func Name(e encoding.Encoding) (string, error)

Name reports the canonical name of the given Encoding. It will return an error if e is not associated with a supported encoding scheme.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier