compression

package
v0.0.0-...-e89a0ad Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CompressingAlgorithms = []string{lz4.AlgorithmName, lzma.AlgorithmName}

Functions

This section is empty.

Types

type Compressor

type Compressor interface {
	NewWriter(writer io.Writer) io.WriteCloser
	FileExtension() string
}

type Decompressor

type Decompressor interface {
	Decompress(src io.Reader) (io.ReadCloser, error)
	FileExtension() string
}

func FindDecompressor

func FindDecompressor(fileExtension string) Decompressor

func GetDecompressorByCompressor

func GetDecompressorByCompressor(compressor Compressor) Decompressor

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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