Documentation ¶
Overview ¶
* Package compress provides utility api for gzip and snappy compress
Index ¶
- func CompressUint64(v uint64) []byte
- func DecompressUint6(b []byte) (v uint64, n int)
- func GUNZIP(b []byte) ([]byte, error)
- func GZIP(b []byte) ([]byte, error)
- func SnappyDecode(b []byte) ([]byte, error)
- func SnappyEncode(b []byte) []byte
- func UnzipFile(file, password, outputdir string) error
- func ZipDir(dir, zipfile, password string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompressUint64 ¶ added in v1.0.10
CompressUint64 convert uint64 to byte slice and compress if need
func DecompressUint6 ¶ added in v1.0.10
DecompressUint6 convert byte slice to uint64
func SnappyDecode ¶
SnappyDecode do unCompress by snappy
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.