zip

package
v0.0.0-...-e43910c Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: CC0-1.0 Imports: 3 Imported by: 0

Documentation

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 file descriptor pointing to the zip file

func New

func New(fileName string) (*Archive, error)

New creates a new instance to control the data that will be zipped.

func (*Archive) Add

func (a *Archive) Add(
	fileName string,
	content []byte) error

Add new files to the buffer

func (*Archive) Close

func (a *Archive) Close() error

Close the zip file descriptor

Jump to

Keyboard shortcuts

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