encoding

package
v0.0.54 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GbkToUtf8 added in v0.0.53

func GbkToUtf8(s []byte) ([]byte, error)

GbkToUtf8 transforms GBK to UTF8.

func GbkToUtf8Str added in v0.0.53

func GbkToUtf8Str(s string) string

GbkToUtf8Str transforms GBK to UTF8 string.

func ToIndentJSON

func ToIndentJSON(obj any) (string, error)

ToIndentJSON converts the golang value to indent JSON string, such as a struct, map, slice, array etc.

func Utf8ToGbk added in v0.0.53

func Utf8ToGbk(b []byte) ([]byte, error)

Utf8ToGbk transforms utf8 to gbk.

func Utf8ToGbkStr added in v0.0.53

func Utf8ToGbkStr(s string) string

Utf8ToGbkStr transforms utf8 to gbk string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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