Documentation
¶
Index ¶
Constants ¶
View Source
const ( BZ2 = ".bz2" GZ = ".gz" TGZ = ".tgz" LZW = ".Z" INFL = ".infl" Zlibe = ".xp3" Xz = ".xz" )
Variables ¶
View Source
var LZMA_alone_magic = []byte{0x5d, 0x00, 0x00}
View Source
var XZ_magic = []byte{0xfd, 0x37, 0x7a}
Functions ¶
This section is empty.
Types ¶
type Compression ¶
type Compression interface {
GetReader(reader io.Reader) (io.ReadCloser, error)
}
func CreateCompression ¶
func CreateCompression(fileName string) Compression
func CreateCompressionFromBytes ¶
func CreateCompressionFromBytes(magicBytes []byte) Compression
type NoCompression ¶
type NoCompression struct { }
func (NoCompression) GetReader ¶
func (comp NoCompression) GetReader(reader io.Reader) (io.ReadCloser, error)
type XZReaderCloser ¶
func (XZReaderCloser) Close ¶
func (xzrc XZReaderCloser) Close() error
Click to show internal directories.
Click to hide internal directories.