encoding

package
v0.0.49 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 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

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

GBKToUTF8 transforms GBK to UTF8.

func GBKToUTF8Str

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

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

UTF82GBK transforms utf8 to gbk.

func UTF8ToGBKStr

func UTF8ToGBKStr(s string) string

UTF82GBKStr 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