arc

package
v1.11.9 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package arc handles interactions with the mholt archiver package. This should be used as the primary means of interacting with file archives before using external archive programs.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoCustom = errors.New("does not support customization")
	ErrWalkrFmt = errors.New("format specified by archive filename is not a walker format")
	ErrPanic    = errors.New("mholt panic with the archive")
)

Functions

func Configure

func Configure(f any) error

Configure interface for the archiver, a cross-platform, multi-format archive utility and Go library.

func Walkr

func Walkr(src, filename string, walkFn archiver.WalkFunc) (err error)

Walkr calls walkFn for each file within the given archive file. The archive format is chosen implicitly. Archiver relies on the filename extension to determine which decompression format to use, which must be supplied using filename.

Types

This section is empty.

Jump to

Keyboard shortcuts

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