encodeutil

package
v0.0.0-...-d503040 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UTF8    = Charset("UTF-8")   // UTF-8 编码
	GB18030 = Charset("GB18030") // GB18030 编码
)

Variables

This section is empty.

Functions

func ByteToString

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

ByteToString 将给定字符集的二进制数据转为 go 字符串。

Types

type Charset

type Charset string

Charset 表示一个合法的字符集。

Jump to

Keyboard shortcuts

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