// Extension returns the extension of a file that uses the specified compression algorithm.
Extension returns the extension of a file that uses the specified compression algorithm.
// Extension returns the extension of a file that uses the specified compression algorithm .
func (compression *Compression) Extension() string {
        switch *compression {
        case Uncompressed:
                return "tar"
        case Bzip2:
                return "tar.bz2"
        case Gzip:
                return "tar.gz"
        case Xz:
                return "tar.xz"
        }
        return ""
}
func ( compression * Compression ) Extension ( ) string { switch * compression { case Uncompressed : return " " case Bzip2 : return " " case Gzip : return " " case Xz : return " " } return " " }
Extension returns the extension of a file that uses the specified compression algorithm.
Extension returns the extension of a file that uses the specified compression algorithm .