gxz

and writing xz-compressed files

Fedora
RUN dnf install -y golang-github-ulikunitz-xz
click the source code to copy install gxz on any operating system with command-not-found.com