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 ExtractToFunc(srcPath, destPath string, fn cae.HookFunc, 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 StreamArchive struct + func NewStreamArachive(w io.Writer) *StreamArchive + 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 ZipArchive struct + Comment string + FileName string + Flag int + NumFiles int + Permission os.FileMode + func Create(name string) (*ZipArchive, error) + func New(w io.Writer) *ZipArchive + func Open(name string) (*ZipArchive, error) + func OpenFile(name string, flag int, perm os.FileMode) (*ZipArchive, error) + func (z *ZipArchive) AddDir(dirPath, absPath string) error + func (z *ZipArchive) AddEmptyDir(dirPath string) bool + func (z *ZipArchive) AddFile(fileName, absPath string) error + func (z *ZipArchive) Close() (err error) + func (z *ZipArchive) DeleteIndex(idx int) error + func (z *ZipArchive) DeleteName(name string) error + func (z *ZipArchive) ExtractTo(destPath string, entries ...string) (err error) + func (z *ZipArchive) ExtractToFunc(destPath string, fn cae.HookFunc, entries ...string) (err error) + func (z *ZipArchive) Flush() error + func (z *ZipArchive) List(prefixes ...string) []string + func (z *ZipArchive) Open(name string, flag int, perm os.FileMode) error