All formats

7z libraries for Go

The Go standard library has archive/zip and archive/tar but no 7z. The library to use is:

There is no maintained pure-Go 7z writer. To create 7z archives from Go, run the 7z / 7zz command with os/exec, or write ZIP or .tar.xz instead (xz uses the same LZMA2 compression).