tar

package
v1.6.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Tar

func Tar(src string, writer io.Writer) error

Given a folder (src), tar-gz' the content and writes it to writer Example:

f, _ := os.Create(tmpFile)

err = Tar(dirToZip, f)

func Untar

func Untar(destination string, r io.Reader) (err error)

Given a .tar.gz file as Reader, decompress the files contained on it to specified destination folder

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL