func (tzst *TarZstd) Create(out io.Writer) error {
	tzst.wrapWriter()
	return tzst.Tar.Create(out)
}
Create opens txz for writing a compressed
tar archive to out.
package archiver
import (
	"fmt"
	"io"
	"strings"
	"github.com/klauspost/compress/zstd"
)
type TarZstd struct {
	*Tar
}
func (*TarZstd) CheckExt(filename string) error {
	if !strings.HasSuffix(filename, ".tar.zst") {
		return fmt.Errorf("filename must have a .tar.zst extension")
	}
	return nil
}
func (tzst *TarZstd) Archive(sources []string, destination string) error {
	err := tzst.CheckExt(destination)
	if err != nil {
		return fmt.Errorf("output %s", err.Error())
	}
	tzst.wrapWriter()
	return tzst.Tar.Archive(sources, destination)
}
func (tzst *TarZstd) Unarchive(source, destination string) error {
	tzst.wrapReader()
	return tzst.Tar.Unarchive(source, destination)
}
func (tzst *TarZstd) Walk(archive string, walkFn WalkFunc) error {
	tzst.wrapReader()
	return tzst.Tar.Walk(archive, walkFn)
}