gzip

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2025 License: MIT Imports: 5 Imported by: 1

README

go-gzip

Package gzip provides functions for gzip.

Documentation

Overview

Package gzip provides functions for gzip.

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