encoding

package
v0.2.56 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsString

func AsString(src interface{}) string

func ByteToHex

func ByteToHex(data []byte) string

byte转16进制字符串

func Decode

func Decode(data []byte, to interface{}) error

功能:反序列化

func DecodeByte

func DecodeByte(data []byte, to interface{}) error

解码二进制

func Encode

func Encode(data interface{}) ([]byte, error)

功能:序列化

func EncodeByte

func EncodeByte(data interface{}) ([]byte, error)

编码二进制

func HexToBye

func HexToBye(hex string) []byte

16进制字符串转[]byte

func UnicodeEmojiCode

func UnicodeEmojiCode(s string) string

Emoji表情转换

func UnicodeEmojiDecode

func UnicodeEmojiDecode(s string) string

Emoji表情解码

Types

type RawBytes

type RawBytes []byte

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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