Documentation
¶
Overview ¶
Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0
Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0
Index ¶
- func Checksum(path string) ([]byte, error)
- func ChecksumHex(path string) (string, error)
- func CopyFile(srcPath, dstPath string) error
- func DeleteFilesInDir(dirPath string) error
- func UnzipFromMemory(zipData []byte, targetDir string) error
- func ZipDirectoryToMemory(sourceDir string) ([]byte, error)
- func ZipDirectoryToTempFile(sourceDir string) (*os.File, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Checksum ¶ added in v0.3.0
Checksum calculates the SHA3-256 checksum of the file or directory at path.
func ChecksumHex ¶ added in v0.3.0
ChecksumHex calculates the SHA3-256 checksum of the file or directory at path and returns it as a hex-encoded string.
func DeleteFilesInDir ¶
DeleteFilesInDir deletes all files in the directory dirPath.
func UnzipFromMemory ¶ added in v0.3.0
func ZipDirectoryToMemory ¶ added in v0.3.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.