Documentation ¶ Index ¶ func Tar(srcPath string, workDir string) (io.Reader, error) func Untar(reader io.Reader, destPath string) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Tar ¶ func Tar(srcPath string, workDir string) (io.Reader, error) Tar creates a tar archive of the specified path (file or directory) and returns the content as a stream. For individual files, it preserves the directory structure relative to the working directory. func Untar ¶ func Untar(reader io.Reader, destPath string) error Untar extracts the contents of a tar archive from the provided reader to the specified destination path. Types ¶ This section is empty. Source Files ¶ View all Source files archiver.go Click to show internal directories. Click to hide internal directories.