zip

package
v1.21.9 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2024 License: Zlib Imports: 8 Imported by: 0

Documentation

Overview

Package zip implements the Archive interface providing zip archiving and compression.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Archive

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

Archive zip struct.

func Copying

func Copying(source *os.File, target io.Writer) (Archive, error)

func New

func New(target io.Writer) Archive

New zip archive.

func (Archive) Add

func (a Archive) Add(f fileconfig.File, stream ...fileconfig.ReaderStream) error

Add a file to the zip archive.

func (Archive) Close

func (a Archive) Close() error

Close all closeables.

Jump to

Keyboard shortcuts

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