zip

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2022 License: Apache-2.0, BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Overview

Package zip contains a fork of archive/zip reader.

This package copies logic from archive/zip to read the central directory file header from the end of a ZIP file. The only modification is that readDirectoryEnd() is exported as ReadZIPOffset(), returning the position of the start of the ZIP contents.

https://github.com/golang/go/blob/go1.17.5/src/archive/zip/reader.go https://github.com/golang/go/blob/go1.17.5/src/archive/zip/struct.go

See https://go.dev/issues/10464

This package MUST NOT be depended on by external code and may change at any time. This is not an "internal" package only because we're required to place external code under a top level "third_party/" directory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadZIPOffset

func ReadZIPOffset(r io.ReaderAt, size int64) (offset int64, err error)

ReadZIPOffset attempts to determine where a ZIP file starts, supporting self-executing JARs. JARs concatenated with a bash script.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL