Categorygithub.com/tj/go-archive
modulepackage
1.0.2
Repository: https://github.com/tj/go-archive.git
Documentation: pkg.go.dev

# README

Go archive package with support for pattern-based filters and file transformations. Used by Up and Apex.


GoDoc

# Functions

FilterPatternFiles filters from the given files, ignoring any which do not exist, combining the patterns in order.
FilterPatterns filters on the given reader.
New returns a new archive writer.
NewZip returns a new zip archive.

# Constants

Formats supported.

# Variables

FilterDotfiles filters dotfiles.

# Structs

Archive wraps a format's writer to provide conveniences.
FileInfo implements the os.FileInfo interface, and is useful if you're working with in-memory contents instead of files from disk.
Info implements the os.FileInfo interface, and is useful if you're working with in-memory contents instead of files from disk.
Stats for an archive.

# Interfaces

Filter is the interface used to filter on files.
Transformer is the interface used to transform files.
Writer is the writer interface for archive formats.

# Type aliases

FilterFunc implements the Filter interface.
Format is the kind of archive format.
TransformFunc implements the Transformer interface.