tar

package
v0.0.0-...-efcb6f0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

README

README

这里的demo简单实现了一个tar解压缩的逻辑。

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Tar

func Tar(src string, writers ...io.Writer) error

Tar takes a source and variable writers and walks 'source' writing each file found to the compress writer; the purpose for accepting multiple writers is to allow for multiple outputs (for example a file, or md5 hash)

func Untar

func Untar(dst string, r io.Reader) error

Untar takes a destination path and a reader; a compress reader loops over the tarfile creating the file structure at 'dst' along the way, and writing any files

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL