compressutil

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gunzip

func Gunzip(data []byte) (out []byte, e error)

Gunzip returns the gunzip of the data.

func GunzipString

func GunzipString(data string) (out string, e error)

GunzipString returns the gunzip string of the data.

func GunzipWithBase64

func GunzipWithBase64(data string) (out string, e error)

GunzipWithBase64 returns the gunzip then base64 of the data.

func Gzip

func Gzip(data []byte) (out []byte, e error)

Gzip returns the gzip of the data.

func GzipString

func GzipString(data string) (out string, e error)

GzipString returns the gzip string of the data.

func GzipThenBase64

func GzipThenBase64(data string) (out string, e error)

GzipThenBase64 returns the gzip then base64 of the data.

func UnZip added in v1.1.2

func UnZip(unzipDirPath string, zipFilePath string) (err error)

UnZip 解压缩,将 src 文件解压缩到 dst 目录中,如果 dst 不存在,则创建。默认传空则 dst 为当前目录

func Zip added in v1.1.2

func Zip(zipFilePath string, srcDirPath string) (err error)

Zip zip src directory to zipFilePath file

Types

This section is empty.

Jump to

Keyboard shortcuts

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