gzip

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(payload []byte, header *Header) (result []byte)

Encode payload to gzip result bytes

Types

type Header struct {
	Name    string
	Comment string
	Date    time.Time
}

Header is the gzip header

func Decode

func Decode(data []byte) (result []byte, header *Header)

Decode gzip to result bytes

Jump to

Keyboard shortcuts

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