compressutil

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Overview

Package compressutil a plugin to handle compression and decompression tasks

Index

Constants

View Source
const (
	// Gzip compression algorithm string.
	Gzip string = "gzip"
	// Deflate compression algorithm string.
	Deflate string = "deflate"
	// Identity compression algorithm string.
	Identity string = "identity"
)

Variables

This section is empty.

Functions

func Decode

func Decode(byteReader *bytes.Buffer, encoding string) (data []byte, err error)

Decode data in a bytes.Reader based on supplied encoding.

func Encode

func Encode(data []byte, encoding string) ([]byte, error)

Encode data in a []byte based on supplied encoding.

Types

type ReaderError

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

ReaderError for notating that an error occurred while reading compressed data.

Jump to

Keyboard shortcuts

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