util

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(src string, dst string)

CopyFile copies a file from src to dst

func GetDirSize

func GetDirSize(path string) int64

GetDirSize returns the size of a directory, including all files and subdirectories

func Move

func Move(src string, dst string) error

Move moves a file from src to dst, works for directory and file

func PathExist

func PathExist(absPath string) bool

PathExist checks if a path exists

func Sha256Sum

func Sha256Sum(file string) (string, error)

Sha256Sum returns the sha256 sum of a file

func TarFiles

func TarFiles(sourceDir string, destFile string)

TarFiles creates a tar archive from a directory

Types

This section is empty.

Jump to

Keyboard shortcuts

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