gzip

package
v1.10.17 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package gzip is an implementation of Compression interface using gzip format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GZip

type GZip struct {
	// contains filtered or unexported fields
}

GZip implements Compression interface using gzip format.

func New

func New(level int) (*GZip, error)

New creates a new GZip instance.

func (*GZip) Compress

func (z *GZip) Compress(data []byte) ([]byte, error)

Compress will compress data using gzip format. In case of any errors, it will return raw data without compression.

Jump to

Keyboard shortcuts

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