Versions in this module Expand all Collapse all v1 v1.0.0 Aug 22, 2019 v0 v0.0.1 Jul 15, 2016 Changes in this version + var Verbose = true + func ExtractTo(srcPath, destPath string, entries ...string) (err error) + func PackTo(srcPath, destPath string, includeDir ...bool) error + func PackToFunc(srcPath, destPath string, fn func(fullName string, fi os.FileInfo) error, ...) error + type File struct + type ReadCloser struct + File []*tar.Header + func (rc *ReadCloser) Close() error + type StreamArchive struct + func NewStreamArachive(w io.Writer) *StreamArchive + func (s *StreamArchive) Close() (err error) + func (s *StreamArchive) StreamFile(relPath string, fi os.FileInfo, data []byte) error + func (s *StreamArchive) StreamReader(relPath string, fi os.FileInfo, r io.Reader) (err error) + type TzArchive struct + FileName string + Flag int + NumFiles int + Permission os.FileMode + func Create(fileName string) (*TzArchive, error) + func New(w io.Writer) *TzArchive + func Open(fileName string) (*TzArchive, error) + func OpenFile(fileName string, flag int, perm os.FileMode) (*TzArchive, error) + func (tz *TzArchive) AddDir(dirPath, absPath string) error + func (tz *TzArchive) AddEmptyDir(dirPath string) bool + func (tz *TzArchive) AddFile(fileName, absPath string) error + func (tz *TzArchive) DeleteIndex(idx int) error + func (tz *TzArchive) DeleteName(name string) error + func (tz *TzArchive) ExtractTo(destPath string, entries ...string) (err error) + func (tz *TzArchive) ExtractToFunc(destPath string, fn cae.HookFunc, entries ...string) (err error) + func (tz *TzArchive) Flush() (err error) + func (tz *TzArchive) List(prefixes ...string) []string + func (tz *TzArchive) Open(name string, flag int, perm os.FileMode) error + func (z *TzArchive) Close() (err error)