Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchiveWriteFunc ¶
ArchiveWriteFunc is the closure used by an archive's AddAll method to actually put a file into an archive Note that for directory entries, this func will be called with a nil 'file' param
type Archivex ¶
type Archivex interface { Create(name string) error Add(name string, file []byte) error AddFile(name string) error AddAll(dir string, includeCurrentFolder bool) error Close() error }
interface
type TarFile ¶
TarFile implement *tar.Writer
type ZipFile ¶
ZipFile implement *zip.Writer
func (*ZipFile) AddAll ¶
AddAll adds all files from dir in archive, recursively. Directories receive a zero-size entry in the archive, with a trailing slash in the header name, and no compression
Click to show internal directories.
Click to hide internal directories.