zip

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Header *Header
	Reader *io.ReadCloser
}
type Header struct {
	Name             string
	Comment          string
	NonUTF8          bool
	CreatorVersion   uint16
	ReaderVersion    uint16
	Flags            uint16
	Method           uint16
	Modified         time.Time
	CRC32            uint32
	CompressedSize   uint64
	UncompressedSize uint64
	Extra            []byte
	ExternalAttrs    uint32
}

type Reader

type Reader struct {
	Header  *zip.FileHeader
	Entries []*Entry
	// contains filtered or unexported fields
}

func NewReader

func NewReader(ra io.ReaderAt, size int64) (*Reader, error)

func NewReaderFrom

func NewReaderFrom(path string) (*Reader, error)

func (*Reader) Close

func (r *Reader) Close() error

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

func NewWriter

func NewWriter(z *io.Writer) (*Writer, error)

func NewWriterTo

func NewWriterTo(path string) (*Writer, error)

func (*Writer) Close

func (w *Writer) Close() error

func (*Writer) Create

func (w *Writer) Create(zh *Header, b []byte) (int, error)

func (*Writer) Flush

func (w *Writer) Flush() error

func (*Writer) SetComment

func (w *Writer) SetComment(comment string) error

Jump to

Keyboard shortcuts

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