targz

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MulanPSL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compress

func Compress(files []*os.File, dest string) error

压缩 使用gzip压缩成tar.gz

func CompressFiles

func CompressFiles(filePaths []string, dest string) error

CompressFiles compresses multiple files into a single archive. It takes a slice of file paths and a destination path as parameters. It returns an error if any file fails to open or if the compression fails.

func DeCompress

func DeCompress(tarFile, dest string) error

解压 tar.gz

Types

This section is empty.

Jump to

Keyboard shortcuts

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