tgz

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compress

func Compress(infile, name, outfile string, timestamp *time.Time) (tarSha []byte, tgzSha []byte, err error)

Compress takes a given path to a file and creates a tgz file that contains only that file. Gives the file the provided name in the tgz. Will use the actual timestamp on the file, unless overridden. Returns hashes of the tar and the entire gzip.

func Uncompress

func Uncompress(infile, outdir string) error

Uncompress takes a given path to a tgz file and extracts the contents to the target directory. contains only that file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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