archive

package
v0.51.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(archiveName string, archiveFormat Format, files []archives.FileInfo) error

func ExtractArchiveName added in v0.51.0

func ExtractArchiveName(archiveName string) string

func IsArchiveFile added in v0.51.0

func IsArchiveFile(filename string) bool

func IsValidFormat

func IsValidFormat(format Format) bool

Types

type Format

type Format string
const (
	TARgz Format = "tar.gz"
	TAR   Format = "tar"
	ZIP   Format = "zip"
)

Jump to

Keyboard shortcuts

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