Documentation ¶
Overview ¶
Package archive provides helper tasks related to archives.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateZipArchive ¶
type CreateZipArchive struct { // SourceDir sets the source dir to compress. Required. SourceDir string // BasePath sets the base path for the archive files. Defaults to no base path. BasePath string // FilterFile provides an optional callback to filter a file. FilterFile FileFilterFunc }
CreateZipArchive creates a zip archive from a path.
func (*CreateZipArchive) CompressTo ¶
func (c *CreateZipArchive) CompressTo(dest io.Writer) error
CompressTo compresses to a writer.
Click to show internal directories.
Click to hide internal directories.