Versions in this module Expand all Collapse all v0 v0.2.0 Oct 17, 2026 Changes in this version + type File struct + func (f *File) DataOffset() (offset int64, err error) + func (f *File) Open() (io.ReadCloser, error) + type ReadCloser struct + func OpenReader(name string) (*ReadCloser, error) + func (rc *ReadCloser) Close() error + type Reader struct + File []*File + func NewReader(r io.ReaderAt, size int64) (*Reader, error) + func (r *Reader) Open(name string) (fs.File, error) v0.1.0 Oct 17, 2026 Changes in this version + const HostBeOS + const HostMSDOS + const HostMacOS + const HostUnix + const HostWin32 + const Store + var ErrAlgorithm = errors.New("rar: unsupported compression algorithm") + var ErrChecksum = errors.New("rar: checksum error") + var ErrFormat = errors.New("rar: not a valid rar file") + var ErrInsecurePath = errors.New("rar: insecure file path") + var ErrUnsupported = errors.New("rar: unsupported archive feature") + type FileHeader struct + Attributes uint32 + CRC32 uint32 + Flags uint16 + HostOS uint8 + Method uint8 + Modified time.Time + Name string + PackedSize uint64 + UnpackedSize uint64 + func FileInfoHeader(fi fs.FileInfo) (*FileHeader, error) + func (h *FileHeader) FileInfo() fs.FileInfo + func (h *FileHeader) Mode() fs.FileMode + func (h *FileHeader) SetMode(mode fs.FileMode) + type Writer struct + func NewWriter(w io.Writer) *Writer + func (w *Writer) AddFS(fsys fs.FS) error + func (w *Writer) Close() error + func (w *Writer) Create(name string) (io.Writer, error) + func (w *Writer) CreateHeader(fh *FileHeader) (io.Writer, error)