archived

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFS

func NewFS(name string) (fs.FS, error)

NewFS reads an archive into memory and constructs an in memory file system. The returned fs.FS points to the root of the file system.

Types

type ArchiveFormat

type ArchiveFormat int
const (
	A_UNKNOWN ArchiveFormat = iota
	A_TAR
	A_TXZ
	A_TGZ
	A_TBZ
	A_ZIP
)

Supported archive formats.

func MatchFormat

func MatchFormat(name string) ArchiveFormat

MatchFormat returns the archive format from a file name or path based on it's extension.

Jump to

Keyboard shortcuts

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