Categorygithub.com/goulash/archive
modulepackage
1.3.2
Repository: https://github.com/goulash/archive.git
Documentation: pkg.go.dev

# README

goulash/archive

GoDoc License: MIT

Package archive provides functions for working with archives.

For more information, see the documentation! :-)

This package is licensed under the MIT license.

# Functions

DirReader returns a specialized reader that reads all the files in a directory in a tar archive as if they were one file.
ExtractArchive extracts an archive on disk to the provided destination directory.
ExtractTar extracts all files from the reader into the provided destination directory.
NewDecompressor creates a new decompressor based on the file extension of the given file.
ReadFileFromArchive tries to read the file specified from the (compressed) archive.
ReadFileFromTar tries to read the file specified from an opened tar file.

# Variables

EOA signifies that the archive has been exhausted.
No description provided by the author

# Structs

Decompressor is a universal decompressor that, given a filepath, chooses the appropriate decompression algorithm.