Tar

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeFile = Type(1) // 文件
	TypeBuff = Type(2) // 缓存
)

Variables

This section is empty.

Functions

func AppendTarBuffFile added in v1.0.2

func AppendTarBuffFile(tarFilePath string, content []byte, fileName string) error

func AppendTarFile added in v1.0.2

func AppendTarFile(tarFilePath, addFilePath, fileName string) error

func CreateTarFile

func CreateTarFile(dirPath, tarFilePath string) error

func ExistTarContent added in v1.0.2

func ExistTarContent(tarFilePath, fileName string) (bool, error)

func ExtractTarFile

func ExtractTarFile(tarPath, destPath string) error

func ReadTarContent

func ReadTarContent(tarFilePath, fileName string) ([]byte, error)

func ReadTarHeader

func ReadTarHeader(tarFilePath string) (map[string]*tar.Header, error)

func ReadTarPathHeader added in v1.0.2

func ReadTarPathHeader(tarFilePath, dirPath string) (map[string]*tar.Header, error)

Types

type Type added in v1.0.2

type Type uint32

Jump to

Keyboard shortcuts

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