ykk

package module
v0.0.0-...-e4df4ce Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2017 License: Apache-2.0 Imports: 4 Imported by: 61

README

ykk GoDoc

ykk.. the best zippers in the WORLD. - krishicks

A library designed to read zip/jar files.

reason for existence

https://github.com/golang/go/issues/10464

maintainers

This repository is maintained by the CF CLI Team

Documentation

Overview

Package ykk was designed to read zip files with additional prefixed bytes (aka Java jar files).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FirstLocalFileHeaderSignature

func FirstLocalFileHeaderSignature(source io.Reader) (int64, error)

FirstLocalFileHeaderSignature returns the relative offset of the header of the first file entry.

func NewReader

func NewReader(sourceZip Data, sourceSize int64) (*zip.Reader, error)

NewReader returns a zip for the given file path.

Types

type Data

type Data interface {
	io.ReadSeeker
	io.ReaderAt
}

Data is the expected input for NewReader. Satisfied by io.File and bytes.Reader.

Jump to

Keyboard shortcuts

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