archive

package
v0.0.0-...-4527cdf Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: Apache-2.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 FileWriter

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

FileWriter is a file-based implementation of archiveWriter

func (FileWriter) Add

func (a FileWriter) Add(name string, content []byte) error

Add adds a file and content to the zip archive

func (FileWriter) Close

func (a FileWriter) Close() error

Close closes the zip writer and file

type Writer

type Writer interface {
	Add(string, []byte) error
	Close() error
}

Writer is an archive writer interface

func NewWriter

func NewWriter(name string) (Writer, error)

NewWriter creates a new file-based archive writer

Jump to

Keyboard shortcuts

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