Documentation ¶
Overview ¶
Package compress 提供了一些用于压缩和解压缩数据的函数。
Index ¶
- func GZipCompress(data []byte) (bytes.Buffer, error)
- func GZipUnCompress(dataByte []byte) ([]byte, error)
- func TARCompress(data []byte) (bytes.Buffer, error)
- func TARUnCompress(dataByte []byte) ([]byte, error)
- func ZIPCompress(data []byte) (bytes.Buffer, error)
- func ZIPUnCompress(dataByte []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GZipCompress ¶
GZipCompress 对数据进行GZip压缩,返回bytes.Buffer和错误信息
func GZipUnCompress ¶
GZipUnCompress 对已进行GZip压缩的数据进行解压缩,返回字节数组及错误信息
func TARCompress ¶ added in v0.4.1
TARCompress 对数据进行TAR压缩,返回bytes.Buffer和错误信息
func TARUnCompress ¶ added in v0.4.1
TARUnCompress 对已进行TAR压缩的数据进行解压缩,返回字节数组及错误信息
func ZIPCompress ¶ added in v0.4.1
ZIPCompress 对数据进行ZIP压缩,返回bytes.Buffer和错误信息
func ZIPUnCompress ¶ added in v0.4.1
ZIPUnCompress 对已进行ZIP压缩的数据进行解压缩,返回字节数组及错误信息
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.