Documentation ¶
Index ¶
- type ArchiveWriteFunc
- type Archivex
- type TarFile
- func (t *TarFile) Add(name string, file []byte) error
- func (t *TarFile) AddAll(dir string, includeCurrentFolder bool) error
- func (t *TarFile) AddFile(name string) error
- func (t *TarFile) AddFileWithName(name string, filename string) error
- func (t *TarFile) AddWithHeader(name string, file []byte, hdr *tar.Header) error
- func (t *TarFile) Close() error
- func (t *TarFile) Create(name string) error
- type ZipFile
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
func (*TarFile) AddFileWithName ¶
AddFile add file from dir in archive tar
func (*TarFile) AddWithHeader ¶
Add add byte in archive tar
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.