cp949

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: BSD-2-Clause Imports: 4 Imported by: 3

Documentation

Overview

Package cp949 provide support for CP949 character encoding, It's degault encoding in Korean MS Windows. *sigh*

Index

Constants

This section is empty.

Variables

View Source
var ErrCP949UnexpectedStream = errors.New("unexpected cp949 stream")

ErrCP949UnexpectedStream show unexpected cp949 stream

Functions

func From

func From(in []byte) ([]byte, error)

From converts cp949 stream to utf-8 stream

func NewReader

func NewReader(r io.Reader) (io.Reader, error)

NewReader creates io.Reader which read cp949 source to utf-8

func NewWriter

func NewWriter(w io.Writer) (io.Writer, error)

NewWriter creaters io.Writer which write utf8 input src to cp949

func To

func To(in []byte) ([]byte, error)

To converts utf-8 stream to cp949 stream

Types

This section is empty.

Jump to

Keyboard shortcuts

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