gzip

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package gzip implements and registers the gzip compressor during the initialization. This package is EXPERIMENTAL.

Index

Constants

View Source
const Name = "gzip"

Name is the name registered for the gzip compressor.

Variables

This section is empty.

Functions

func SetLevel added in v1.11.0

func SetLevel(level int) error

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.

Jump to

Keyboard shortcuts

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