utils

package
v1.25.5 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: Apache-2.0 Imports: 10 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanDir added in v1.4.0

func CleanDir(dirPath string)

CleanDir ...

func CreateDirs added in v1.11.0

func CreateDirs(dirPath string)

CreateDirs ...

func GetAppDataHome added in v1.11.0

func GetAppDataHome() string

GetAppDataHome ...

func GetTempHome added in v1.22.0

func GetTempHome() string

GetTempHome ...

func GetUserHome

func GetUserHome() string

GetUserHome ...

func MoveFile

func MoveFile(oldPath string, newPath string)

MoveFile ...

func RemoveDir

func RemoveDir(dirPath string)

RemoveDir ...

func RemoveFile

func RemoveFile(filePath string)

RemoveFile ...

func Untar

func Untar(src string, dst string) error

Untar takes a destination path and a reader; a tar reader loops over the tarfile creating the file structure at 'dst' along the way, and writing any files

func Unzip

func Unzip(src string, dest string) error

Unzip ...

Types

type EnvVar

type EnvVar struct {
	Name  string
	Value string
}

EnvVar ...

Jump to

Keyboard shortcuts

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