Versions in this module Expand all Collapse all v0 v0.1.4 Jan 17, 2022 v0.1.3 Jan 17, 2022 Changes in this version + const DefaultArchiverRoot + var ErrDirIndexTooLarge = errors.New("DirIndex.slice: too large") + var ErrUnknownArchiver = errors.New("unknown archiver file") + var ErrUnknownEncoder = errors.New("unknown encoder") + var ErrWriterNotSupport = errors.New("writer is not supported") + func RegisterDecoder(decoder Decoder) + func RegisterEncoder(encode Encoder) + func Version() string + type ArchiverFile interface + Root func() string + type Decoder interface + Close func() error + GetDirEntries func(path string, n int) ([]fs.DirEntry, error) + Name func() string + OpenReader func(path string) (fs.FS, error) + OpenReaderWithPassword func(path, pwd string) (fs.FS, error) + Reset func() + SetCharset func(charset []encoding.Encoding, skipErr bool) + SetRootInfo func(info os.FileInfo) + type DirIndex struct + func NewDirEntries() *DirIndex + func (d *DirIndex) Add(idx int) + func (d *DirIndex) Entries() []int + func (d *DirIndex) Len() int + func (d *DirIndex) Reset() + type Encoder interface + Close func() error + Create func(w io.Writer, entries []ArchiverFile) error + Name func() string + Reset func() + SetCompressedExt func(ext map[string]struct{}) + type FileSystem struct + Charset []encoding.Encoding + SkipCharErr bool + func (fs *FileSystem) Close() error + func (fs *FileSystem) CreateArchiverFile(encode string, w io.Writer, entries []ArchiverFile) error + func (fs *FileSystem) Open(path string) (fs.FS, error) + func (fs *FileSystem) OpenWithPwd(path, pwd string) (fs.FS, error)