charset

package
v0.0.0-...-a0cf6f9 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package charset provides an easy-to-use wrapper implementation for charset conversion.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDecoder

func NewDecoder(src io.Reader, enc Charset) io.Reader

NewDecoder converts the specified input to UTF-8.

func NewEncoder

func NewEncoder(dst io.Writer, enc Charset) io.Writer

NewEncoder converts UTF-8 input to the specified output.

Types

type Charset

type Charset int
const (
	UTF8 Charset = iota
	ShiftJIS
)

Jump to

Keyboard shortcuts

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