Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Err7zNotAvailable is returned if 7z executable is not available Err7zNotAvailable = errors.New("7z executable not available") // ErrNoEntries is returned if the archive has no files ErrNoEntries = errors.New("no entries in 7z file") )
Functions ¶
func Change7zCached ¶
func Change7zCached(i int)
Types ¶
type Archive ¶
Archive describes a single .7z archive
func NewArchive ¶
func (*Archive) ExtractToFile ¶
ExtractToFile extracts a given file from the archive to a file on disk
func (*Archive) ExtractToWriter ¶
ExtractToWriter writes the content of a given file inside the archive to dst
func (*Archive) GetFileReader ¶
func (a *Archive) GetFileReader(name string) (io.ReadCloser, error)
GetFileReader returns a reader for reading a given file
Click to show internal directories.
Click to hide internal directories.