archive

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extract

func Extract(archivePath string, dest string) error

func ReadEntry

func ReadEntry(archivePath string, name string) ([]byte, error)

func WriteTarGz

func WriteTarGz(archivePath string, sourceDir string) error

func WriteZip

func WriteZip(archivePath string, paths []string) error

Types

type Entry

type Entry struct {
	Name    string
	Size    int64
	Mode    os.FileMode
	ModTime time.Time
	IsDir   bool
}

func List

func List(archivePath string) ([]Entry, error)

Jump to

Keyboard shortcuts

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