Documentation ¶
Overview ¶
Package lzmadec implements extracting files from .7z archives. It requires 7z executable to be installed.
Short tutorial: http://blog.kowalczyk.info/article/g/Extracting-files-from-7z-archives-in-Go.html.
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 ¶
This section is empty.
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.