charset

package
v0.0.0-...-e336ece Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

Decoder contains charset encoding to decode non-utf8 string.

func NewDecoder

func NewDecoder(charset string) *Decoder

NewDecoder create a Decoder by charset name.

func (*Decoder) Decode

func (c *Decoder) Decode(s string) (string, error)

Decode decodes an non-utf8 string.

Jump to

Keyboard shortcuts

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