Documentation ¶
Index ¶
- func CreateTar(destination io.Writer, source string) error
- func CreateTarGz(destination io.Writer, source string) error
- func Extract(source io.Reader, destination string, stripComponents int) error
- func ExtractTar(source io.Reader, destination string, stripComponents int) errordeprecated
- func ExtractTarBz2(source io.Reader, destination string, stripComponents int) errordeprecated
- func ExtractTarGz(source io.Reader, destination string, stripComponents int) errordeprecated
- func ExtractTarXz(source io.Reader, destination string, stripComponents int) errordeprecated
- func ExtractZip(source io.Reader, destination string, stripComponents int) errordeprecated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTar ¶ added in v1.14.0
CreateTar writes a TAR to the destination io.Writer containing the directories and files in the source folder.
func CreateTarGz ¶ added in v1.14.0
CreateTarGz writes a GZIP'd TAR to the destination io.Writer containing the directories and files in the source folder.
func Extract ¶ added in v1.59.0
Extract decompresses and extract source files to a destination directory or path. For archives, an arbitrary number of top-level directory components can be stripped from each path.
func ExtractTar
deprecated
added in
v1.14.0
func ExtractTarBz2
deprecated
added in
v1.24.0
func ExtractTarGz
deprecated
added in
v1.14.0
func ExtractTarXz
deprecated
added in
v1.14.0
func ExtractZip
deprecated
added in
v1.14.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.