encoding

package
v1.5.10 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UTF8    = Charset("UTF-8")
	GB18030 = Charset("GB18030")
	GBK     = Charset("GBK")
)

Variables

This section is empty.

Functions

func ConvertByte2String

func ConvertByte2String(byte []byte, charset Charset) string

func ConvertToString

func ConvertToString(src string, srcCode string, tagCode string) string

func GetBytes

func GetBytes(data []byte, charset Charset) (cdata []byte, err error)

func GetBytes0

func GetBytes0(data []byte, charset Charset) ([]byte, error)

Types

type Charset

type Charset = string

Jump to

Keyboard shortcuts

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