Documentation
¶
Index ¶
- Constants
- func AppendTarBuffFile(tarFilePath string, content []byte, fileName string) error
- func AppendTarFile(tarFilePath, addFilePath, fileName string) error
- func CreateTarFile(dirPath, tarFilePath string) error
- func ExistTarContent(tarFilePath, fileName string) (bool, error)
- func ExtractTarFile(tarPath, destPath string) error
- func ReadTarContent(tarFilePath, fileName string) ([]byte, error)
- func ReadTarHeader(tarFilePath string) (map[string]*tar.Header, error)
- func ReadTarPathHeader(tarFilePath, dirPath string) (map[string]*tar.Header, error)
- type Type
Constants ¶
View Source
const ( TypeFile = Type(1) // 文件 TypeBuff = Type(2) // 缓存 )
Variables ¶
This section is empty.
Functions ¶
func AppendTarBuffFile ¶ added in v1.0.2
func AppendTarFile ¶ added in v1.0.2
func CreateTarFile ¶
func ExistTarContent ¶ added in v1.0.2
func ExtractTarFile ¶
func ReadTarContent ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.