Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
SupportedFormats contains all supported archive formats
View Source
var Tar tarFormat
Tar is for Tar format
View Source
var TarGz tarGzFormat
TarGz is for TarGz format
Functions ¶
Types ¶
type Archiver ¶
type Archiver interface {
// Match checks supported files
Match(filename string) bool
// Make makes an archive file on disk.
Make(destination string, sources []string) error
// Open extracts an archive file on disk.
Open(source, destination string) error
// Write writes an archive to a Writer.
Write(output io.Writer, sources []string) error
// Read reads an archive from a Reader.
Read(input io.Reader, destination string) error
}
Archiver represent a archive format
Source Files
¶
- archiver.go
- tar.go
- targz.go
Click to show internal directories.
Click to hide internal directories.