Versions in this module Expand all Collapse all v0 v0.1.1 Aug 29, 2026 v0.1.0 Aug 29, 2026 Changes in this version + func SetDebug(enabled bool) + type AppleSingleMetadata struct + Comment string + Creator uint32 + DataForkSize uint32 + Double bool + FileType uint32 + FinderFlags uint16 + Name string + ResourceForkSize uint32 + type Archive struct + Comment string + Encrypted bool + Entries []Entry + Format FormatVersion + Wrappers []ArchiveWrapper + type ArchiveWrapper struct + AppleSingle *AppleSingleMetadata + BinHex *BinHexMetadata + MacBinary *MacBinaryMetadata + type BinHexMetadata struct + Creator uint32 + DataForkSize uint32 + FileType uint32 + Flags uint16 + Name string + ResourceForkSize uint32 + type CompressionMethod uint8 + const MethodArsenic15 + const MethodCompressLZW + const MethodFixedHuffman + const MethodHuffman + const MethodInstaller14 + const MethodLZAH + const MethodLZHuffman + const MethodMW + const MethodNone + const MethodRLE90 + func (m CompressionMethod) Name() string + type DataForkFunc func(entry Entry, r ForkReader) error + type DirectoryFunc func(entry Entry) error + type DirectoryWriter interface + CreateDirectory func(entry Entry) error + type Entry struct + Comment string + CreationTime time.Time + DataFork *Fork + FileCreator uint32 + FileType uint32 + FinderFlags uint16 + IsDirectory bool + ModTime time.Time + Name string + Path string + ResourceFork *Fork + type ExtractOptions struct + Password []byte + type File struct + Archive *Archive + func Open(path string) (*File, error) + func (f *File) Close() error + func (f *File) Extract(sink ForkWriter, opts ExtractOptions) error + func (f *File) ExtractSelected(sink ForkWriter, opts ExtractOptions, onlyPaths []string) error + func (f *File) OpenFork(fork *Fork, opts ExtractOptions) (ForkReader, error) + func (f *File) Parser() *Parser + type Fork struct + CRC16 uint16 + CompressedSize uint32 + DataOffset int64 + EntryKey []byte + IsEncrypted bool + Kind ForkKind + Method CompressionMethod + UncompressedSize uint32 + type ForkKind int + const ForkData + const ForkResource + func (k ForkKind) String() string + type ForkReader interface + type ForkWriter interface + WriteDataFork func(entry Entry, r ForkReader) error + WriteResourceFork func(entry Entry, r ForkReader) error + type FormatVersion int + const FormatSIT1 + const FormatSIT5 + func (v FormatVersion) String() string + type Handler struct + DataFork DataForkFunc + Directory DirectoryFunc + ResourceFork ResourceForkFunc + func (h Handler) CreateDirectory(entry Entry) error + func (h Handler) WriteDataFork(entry Entry, r ForkReader) error + func (h Handler) WriteResourceFork(entry Entry, r ForkReader) error + type MacBinaryMetadata struct + Name string + type Parser struct + func NewParser(r io.ReaderAt, size int64) *Parser + func (p *Parser) Extract(arc *Archive, sink ForkWriter, opts ExtractOptions) error + func (p *Parser) ExtractSelected(arc *Archive, sink ForkWriter, opts ExtractOptions, onlyPaths []string) error + func (p *Parser) OpenFork(arc *Archive, fork *Fork, opts ExtractOptions) (ForkReader, error) + func (p *Parser) Parse() (*Archive, error) + type ResourceForkFunc func(entry Entry, r ForkReader) error