htmlindex

package
v0.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2024 License: BSD-3-Clause Imports: 12 Imported by: 807

Documentation

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

Constants

This section is empty.

Variables

This section is empty.

Functions

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL