coding

package
v0.0.0-...-33d6422 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2021 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToString

func BytesToString(b []byte) string

func Compress

func Compress(b []byte, level int) ([]byte, error)

Compress compresses bytes using gzip.

func CompressJSON

func CompressJSON(v interface{}, level int) ([]byte, error)

CompressJSON returns a compressed JSON representation of v.

func Decompress

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

Decompress decompresses gzip-compressed bytes.

func DecompressJSON

func DecompressJSON(b []byte, v interface{}) error

DecompressJSON decodes the compressed JSON representation of v to b.

func Hash

func Hash(data []byte) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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