Versions in this module Expand all Collapse all v1 v1.0.0 Oct 4, 2023 Changes in this version + const PackingMethodPacked + const PackingMethodProductEntry + const PackingMethodUncompressed + var ErrFileCorrupted = errors.New("file seems corrupted") + var ErrInvalidProductEntry = errors.New("invalid product entry") + func Pack(dir, destination string, verbose bool) error + func Unpack(file, destination string, verbose bool) error + type File struct + Files []*FileEntry + Headers map[string]string + Path string + func Load(path string) (file *File, err error) + func (f *File) CacheEnabled() bool + func (f *File) ClearCache() + func (f *File) Close() + func (f *File) Load() (err error) + func (f *File) ToggleCache(enable bool) + func (f *File) Unpack(destination string, verbose bool) error + type FileEntry struct + DataSize uint32 + Filename string + OriginalSize uint32 + Packing PackingMethod + Reserved uint32 + Timestamp time.Time + func NewEmptyEntry() *FileEntry + func NewProductEntry() *FileEntry + func (e *FileEntry) Data() ([]byte, error) + func (e *FileEntry) IsEmpty() bool + func (e *FileEntry) IsProductEntry() bool + type InvalidPackingMethod struct + Packing PackingMethod + func (i *InvalidPackingMethod) Error() string + type PackingMethod uint32