var zipinsecurepath …
var ErrFormat …
var ErrAlgorithm …
var ErrChecksum …
var ErrInsecurePath …
type Reader …
type ReadCloser …
type File …
func OpenReader(name string) (*ReadCloser, error) { … }
func NewReader(r io.ReaderAt, size int64) (*Reader, error) { … }
func (r *Reader) init(rdr io.ReaderAt, size int64) error { … }
func (r *Reader) RegisterDecompressor(method uint16, dcomp Decompressor) { … }
func (r *Reader) decompressor(method uint16) Decompressor { … }
func (rc *ReadCloser) Close() error { … }
func (f *File) DataOffset() (offset int64, err error) { … }
func (f *File) Open() (io.ReadCloser, error) { … }
func (f *File) OpenRaw() (io.Reader, error) { … }
type dirReader …
func (r *dirReader) Read([]byte) (int, error) { … }
func (r *dirReader) Close() error { … }
type checksumReader …
func (r *checksumReader) Stat() (fs.FileInfo, error) { … }
func (r *checksumReader) Read(b []byte) (n int, err error) { … }
func (r *checksumReader) Close() error { … }
func (f *File) findBodyOffset() (int64, error) { … }
func readDirectoryHeader(f *File, r io.Reader) error { … }
func readDataDescriptor(r io.Reader, f *File) error { … }
func readDirectoryEnd(r io.ReaderAt, size int64) (dir *directoryEnd, baseOffset int64, err error) { … }
func findDirectory64End(r io.ReaderAt, directoryEndOffset int64) (int64, error) { … }
func readDirectory64End(r io.ReaderAt, offset int64, d *directoryEnd) (err error) { … }
func findSignatureInBlock(b []byte) int { … }
type readBuf …
func (b *readBuf) uint8() uint8 { … }
func (b *readBuf) uint16() uint16 { … }
func (b *readBuf) uint32() uint32 { … }
func (b *readBuf) uint64() uint64 { … }
func (b *readBuf) sub(n int) readBuf { … }
type fileListEntry …
type fileInfoDirEntry …
func (f *fileListEntry) stat() (fileInfoDirEntry, error) { … }
func (f *fileListEntry) Name() string { … }
func (f *fileListEntry) Size() int64 { … }
func (f *fileListEntry) Mode() fs.FileMode { … }
func (f *fileListEntry) Type() fs.FileMode { … }
func (f *fileListEntry) IsDir() bool { … }
func (f *fileListEntry) Sys() any { … }
func (f *fileListEntry) ModTime() time.Time { … }
func (f *fileListEntry) Info() (fs.FileInfo, error) { … }
func (f *fileListEntry) String() string { … }
func toValidName(name string) string { … }
func (r *Reader) initFileList() { … }
func fileEntryCompare(x, y string) int { … }
func (r *Reader) Open(name string) (fs.File, error) { … }
func split(name string) (dir, elem string, isDir bool) { … }
var dotFile …
func (r *Reader) openLookup(name string) *fileListEntry { … }
func (r *Reader) openReadDir(dir string) []fileListEntry { … }
type openDir …
func (d *openDir) Close() error { … }
func (d *openDir) Stat() (fs.FileInfo, error) { … }
func (d *openDir) Read([]byte) (int, error) { … }
func (d *openDir) ReadDir(count int) ([]fs.DirEntry, error) { … }