import "golang.org/x/text/encoding/ianaindex"
        
Package ianaindex maps names to Encodings as specified by the IANA registry. This includes both the MIME and IANA names.
See http://www.iana.org/assignments/character-sets/character-sets.xhtml for more details.
type Index struct {
}Index maps names registered by IANA to Encodings.
var (
    // MIME is an index to map MIME names. It does not support aliases.
    MIME *Index
    // IANA is an index that supports all names and aliases using IANA names as
    // the canonical identifier.
    IANA *Index
)Code:
fmt.Println(ianaindex.MIME.Name(charmap.ISO8859_7))
fmt.Println(ianaindex.IANA.Name(charmap.ISO8859_7))
e, _ := ianaindex.IANA.Get("cp437")
fmt.Println(ianaindex.IANA.Name(e))
// TODO: Output:
// ISO-8859-7
// ISO8859_7:1987
// IBM437
          
        Get returns an Encoding for IANA-registered names. Matching is case-insensitive.
Name reports the canonical name of the given Encoding. It will return an error if the e is not associated with a known encoding scheme.
Package ianaindex imports 1 packages (graph). Updated about 16 hours ago. Refresh now. Tools for package owners.