utils

package
v0.0.0-...-942794f Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes2HexString

func Bytes2HexString(b []byte) string

Bytes2HexString bytes转16进制字符串

func HexString2Bytes

func HexString2Bytes(hexStr string) []byte

HexString2Bytes 16进制字符串转bytes

func ZlibCompress

func ZlibCompress(src []byte) ([]byte, error)

进行zlib压缩

func ZlibUnCompress

func ZlibUnCompress(compressSrc []byte) ([]byte, error)

进行zlib解压缩

Types

type SortableMap

type SortableMap struct {
	Key   interface{}
	Value int64
}

type SortableMapList

type SortableMapList []SortableMap

func (SortableMapList) Len

func (p SortableMapList) Len() int

func (SortableMapList) Less

func (p SortableMapList) Less(i, j int) bool

func (SortableMapList) Swap

func (p SortableMapList) Swap(i, j int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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