Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFormat = errors.New("decompress: unknown format")
ErrFormat is unsupported format error
Functions ¶
func RegisterFormat ¶
func RegisterFormat(magic string, offset int, d Decompressor)
RegisterFormat registers decompressor for the magic number.
Types ¶
type Decompressor ¶
type Decompressor func(*os.File) (MultiPartFile, error)
Decompressor creates a reader form the file parameter
type MultiPartFile ¶
MultiPartFile describes minimal interface for interating over compressed files. Using the similar approach as for tar module.
Click to show internal directories.
Click to hide internal directories.