gzip

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package gzip provides GZip related functionality

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompressWithGzip

func CompressWithGzip(data io.Reader) (io.ReadCloser, error)

CompressWithGzip takes an io.Reader as input and pipes it through a gzip.Writer returning an io.Reader containing the gzipped data. An error is returned if passing data to the gzip.Writer fails

Types

type ReadWaitCloser

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

ReadWaitCloser is ReadCloser that waits for finishing underlying reader

func (*ReadWaitCloser) Close

func (r *ReadWaitCloser) Close() error

Close closes underlying reader and waits for finishing operations

Jump to

Keyboard shortcuts

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