Easily create and extract .zip, .tar, .tar.gz, .tar.bz2, .tar.xz, .tar.lz4, .tar.sz, and .rar (extract-only) files with Go. Package archiver makes it trivially easy to make and extract common archive formats. Simply name the input and output file(s). Files are put into the root of the archive; directories are recursively added, preserving structure.