Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CompressingAlgorithms = []string{lz4.AlgorithmName, lzma.AlgorithmName}
View Source
var Compressors = map[string]Compressor{ lz4.AlgorithmName: lz4.Compressor{}, lzma.AlgorithmName: lzma.Compressor{}, }
View Source
var Decompressors = []Decompressor{ lz4.Decompressor{}, lzma.Decompressor{}, gzip.Decompressor{}, }
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
Click to show internal directories.
Click to hide internal directories.