convutil

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes2str

func Bytes2str(b []byte) (target string)

Bytes2str (efficient)

func GBK2Utf8 added in v1.1.4

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

GBK2Utf8 将 GBK 编码转换为 utf-8 编码

func IsGBK added in v1.1.4

func IsGBK(data []byte) bool

IsGBK 判断是否为 GBK 编码

func IsUtf8 added in v1.1.4

func IsUtf8(data []byte) bool

IsUtf8 判断是否为 utf-8 编码

func Str2bytes

func Str2bytes(oriStr string) (target []byte)

Str2bytes (efficient)

func Utf82GBK added in v1.1.4

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

Utf82GBK 将 utf-8 编码转换为 GBK 编码

Types

This section is empty.

Jump to

Keyboard shortcuts

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