Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Compression ¶
type Compression int
Compression represents the supported compress readers
const ( // Uncompressed is the same reader you passed in Uncompressed Compression = iota // Bzip2 is a reader Bzip2 // Gzip is a reader Gzip // Xz is a reader Xz )
func DetectCompression ¶
func DetectCompression(source []byte) Compression
DetectCompression compares for any magic bytes
func (*Compression) Extension ¶
func (compression *Compression) Extension() string
Extension returns the file extension for the detected type
Click to show internal directories.
Click to hide internal directories.