Skip to main content

gzip

成员函数函数描述/介绍
gzip.Compress
gzip.Decompress
gzip.IsGzip

函数定义#

Compress#

详细描述#

定义#

Compress(i any) ([]byte, error)

参数#

参数名参数类型参数解释
iany

返回值#

返回值(顺序)返回值类型返回值解释
r1[]byte
r2error

Decompress#

详细描述#

定义#

Decompress(ret []byte) ([]byte, error)

参数#

参数名参数类型参数解释
ret[]byte

返回值#

返回值(顺序)返回值类型返回值解释
r1[]byte
r2error

IsGzip#

详细描述#

定义#

IsGzip(raw []byte) bool

参数#

参数名参数类型参数解释
raw[]byte

返回值#

返回值(顺序)返回值类型返回值解释
r1bool