Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ignorer ¶
type Ignorer interface { // Ignore returns true to ignore a file, and false to include the file. Ignore(relPath string) bool }
Ignorer is an interface for conditionally ignoring files or directory trees when creating a tarball.
func Merge ¶
Merge returns an Ignorer implementation that returns true if any of the provided ignorers return true.
func NewFileIncluder ¶
NewFileIncluder creates an Ignorer that will ignore all files except the given files. Parent directories of the given files are also included.
Click to show internal directories.
Click to hide internal directories.