gzip

package
v0.0.0-...-932ab5e Latest Latest
Warning

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

Go to latest
Published: May 9, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package gzip is a partial implementation of the gzip API using the standard library compress/gzip package. It contains the part of the API used by httpgzip.

Index

Constants

View Source
const (
	NoCompression      = gzip.NoCompression
	BestSpeed          = gzip.BestSpeed
	BestCompression    = gzip.BestCompression
	DefaultCompression = gzip.DefaultCompression
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

type Writer gzip.Writer

func NewWriterLevel

func NewWriterLevel(w io.Writer, level int) (*Writer, error)

func (*Writer) Close

func (z *Writer) Close() error

func (*Writer) Reset

func (z *Writer) Reset(w io.Writer)

func (*Writer) Write

func (z *Writer) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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