Versions in this module Expand all Collapse all v2 v2.0.0 Nov 24, 2021 Changes in this version + func AddNewBar(p *mpb.Progress, file string, start time.Time) (b *mpb.Bar) + func ByFormat(filename string) (interface{}, error) + func CheckPath(destination, filename string) (err error) + func DirFromFile(filename string) (dir string) + func Extract(fileList *[]string, destDir string, numC uint32) (err error) + func FileExists(filename string) bool + func GetFile(file string) (f *os.File, err error) + func GetFileCType(out *os.File) (string, error) + func GetFileHeader(file string, l uint32) ([]byte, error) + func GetFileName(f string) string + func GetFormat(filename string) (interface{}, error) + func GetHeader(r io.Reader, l uint32) (in []byte, err error) + func IsIllegalPathError(err error) bool + func IsSymlink(fi os.FileInfo) bool + func Mkdir(path string, mode os.FileMode) error + func TopLevels(paths []string) bool + func WriteFile(destination string, in io.Reader, mode os.FileMode) (err error) + func WriteHardlink(destination, link string) (err error) + func WriteSymlink(destination, link string) (err error) + type Bz2 struct + CompressionLevel int + func NewBz2() *Bz2 + func (*Bz2) CheckFormat(filename string) error + func (bz *Bz2) Extract(filename, destination string, p *mpb.Progress, start time.Time) (err error) + type Extractor interface + Extract func(filename, dest string, p *mpb.Progress, start time.Time) error + type File struct + Header interface{} + type Format interface + CheckFormat func(filename string) error + type Gz struct + CompressionLevel int + func NewGz() *Gz + func (gz *Gz) CheckFormat(filename string) error + func (gz *Gz) Extract(filename, destination string, p *mpb.Progress, start time.Time) (err error) + type IllegalPathError struct + Abs string + Filename string + func (e *IllegalPathError) Error() string + type MIME struct + type Rar struct + MkdirAll bool + func NewRar() *Rar + func (*Rar) CheckFormat(filename string) error + func (rar *Rar) Close() (err error) + func (rar *Rar) Extract(filename, destination string, p *mpb.Progress, start time.Time) (err error) + func (rar *Rar) OpenRarFile(file string) (err error) + func (rar *Rar) Read() (f File, err error) + type ReadFakeCloser struct + func (rfc ReadFakeCloser) Close() error + type Tar struct + MkdirAll bool + func NewTar() *Tar + func (*Tar) CheckFormat(filename string) error + func (t *Tar) Close() + func (t *Tar) Extract(filename, destination string, p *mpb.Progress, start time.Time) (err error) + func (t *Tar) Open(in io.Reader) (err error) + func (t *Tar) Read() (f File, err error) + type TarGz struct + CompressionLevel int + SingleThread bool + func NewTarGz() *TarGz + func (tgz *TarGz) CheckFormat(filename string) (err error) + func (tgz *TarGz) Extract(filename, destination string, p *mpb.Progress, start time.Time) (err error) + func (tgz *TarGz) Open(in io.Reader) (err error) + type Zip struct + CompressionLevel int + FileMethod uint16 + MkdirAll bool + SeletiveCompression bool + func NewZip() *Zip + func (*Zip) CheckFormat(filename string) error + func (z *Zip) Close() + func (z *Zip) Extract(filename, destination string, p *mpb.Progress, start time.Time) (err error) + func (z *Zip) Open(in io.Reader, size int64) (err error) + func (z *Zip) Read() (f File, err error) + type ZipCompressionMethod uint16 + const BZIP2 + const Deflate + const LZMA + const Store + const XZ + const ZSTD Other modules containing this package github.com/Galzzly/extract