encoding

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: MIT Imports: 3 Imported by: 5

README

encoding

wrap package of golang.org/x/text/encoding for GBK/UCS2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GBK2UCS2

func GBK2UCS2(msg []byte) []byte

func GBK2UTF8

func GBK2UTF8(msg []byte) []byte

func UCS22UTF8

func UCS22UTF8(msg []byte) []byte

func UTF82GBK

func UTF82GBK(msg []byte) []byte

func UTF82UCS2

func UTF82UCS2(msg []byte) []byte

Types

type GB18030

type GB18030 []byte

func (GB18030) Decode

func (s GB18030) Decode() []byte

Decode from GB18030

func (GB18030) Encode

func (s GB18030) Encode() []byte

Encode to GB18030

type UCS2

type UCS2 []byte

UCS2 text codec.

func (UCS2) Decode

func (s UCS2) Decode() []byte

Decode from UCS2.

func (UCS2) Encode

func (s UCS2) Encode() []byte

Encode to UCS2.

Jump to

Keyboard shortcuts

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