gzip
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package gzip implements and registers the gzip compressorduring the initialization.
Experimental¶
Notice: This package is EXPERIMENTAL and may be changed or removed in alater release.
Index¶
Constants¶
const Name = "gzip"Name is the name registered for the gzip compressor.
Variables¶
This section is empty.
Functions¶
funcSetLevel¶added inv1.11.0
SetLevel updates the registered gzip compressor to use the compression level specified (gzip.HuffmanOnly is not supported).NOTE: this function must only be called during initialization time (i.e. in an init() function),and is not thread-safe.
The error returned will be nil if the specified level is valid.
Types¶
This section is empty.