Versions in this module Expand all Collapse all v0 v0.0.2 Mar 8, 2021 v0.0.1 Jan 30, 2021 Changes in this version + const TarSuffix + const TargzSuffix + var ErrTooManyArgs = errors.New("too many arguments") + func Tar(tar string, paths ...string) error + func Targz(targz string, paths ...string) error + func Untar(tar string, dir ...string) ([]string, []string, error) + func Untargz(targz string, dir ...string) ([]string, []string, error) + type Reader struct + func NewFileReader(name string) (*Reader, error) + func NewGzipFileReader(name string) (*Reader, error) + func NewGzipReader(r io.Reader) *Reader + func NewReader(r io.Reader) *Reader + func (t *Reader) Close() error + func (t *Reader) NextBytes() (name string, isDir bool, data []byte, err error) + func (t *Reader) NextFile(dir ...string) (name string, isDir bool, err error) + func (t *Reader) Untar(dir ...string) (files, dirs []string, err error) + type Writer struct + func NewFileWriter(name string) (*Writer, error) + func NewGzipFileWriter(name string) (*Writer, error) + func NewGzipWriter(w io.Writer) *Writer + func NewWriter(w io.Writer) *Writer + func (w *Writer) Close() error + func (w *Writer) Flush() error + func (w *Writer) Tar(paths ...string) error + func (w *Writer) TarBytes(name string, data []byte) error + func (w *Writer) TarDir(dir string) error + func (w *Writer) TarFile(name string) error