Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchiveWriteFunc ¶
type ArchiveWriteFunc func(info os.FileInfo, file io.Reader, entryName string, fullPath string) (err error)
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 CreateWriter(name string, w io.Writer) error Add(name string, file io.Reader, info os.FileInfo) error AddAll(dir string, includeCurrentFolder bool) error Close() error }
interface
type TarFile ¶
type TarFile struct { Writer *tar.Writer Name string GzWriter *gzip.Writer Compressed bool // contains filtered or unexported fields }
TarFile implement *tar.Writer
Click to show internal directories.
Click to hide internal directories.