Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  var SupportedFormats = map[string]Archiver{}
    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 ¶
func RegisterFormat ¶
RegisterFormat adds a supported archive format
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
func MatchingFormat ¶
MatchingFormat returns the first archive format that matches the given file, or nil if there is no match
 Click to show internal directories. 
   Click to hide internal directories.