Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ArchiveExtensions []string = []string{".ar", ".arj", ".cpio", ".dump", ".jar", ".7z", ".zip", ".pack", ".pack2000", ".tar", ".snz", ".z", ".tgz", ".rpm", ".gem", ".deb", ".whl", ".apk"}
View Source
var CompressionExtensions []string = []string{".bz2", ".gz", ".lzma", ".xz"}
View Source
var KnownExtensions []string
Extensions known to be archives or compressed files
View Source
var PlaintextExtensions []string = []string{".js", ".json", ".txt"}
PlaintextExtensions that if compressed, should be only decompressed, and not passed to the general extractor
Functions ¶
func IsExtractable ¶
func RecognizeExtension ¶
Types ¶
type Extract ¶
type Extract struct {
// contains filtered or unexported fields
}
func New ¶
New creates a new extractor for the given source and file name If file name is empty, it is calculated from the source path
func NewAt ¶
NewAt creates a new extractor for the given source and file name, set-up to extract to the given target If file name is empty, it is calculated from the source path
func (Extract) IsEnclosed ¶
func (*Extract) SetPlaintextExtensions ¶
Click to show internal directories.
Click to hide internal directories.