gzip

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsGzipped

func IsGzipped(src []byte) bool

IsGzipped returns true iff the input is gzipped.

func Uncompress

func Uncompress(src []byte, maxSize int64) ([]byte, error)

Uncompress performs gzip uncompression and returns the result. Returns error if the input file is not in gzipped format or if the result's size exceeds maxSize.

Types

This section is empty.

Jump to

Keyboard shortcuts

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