utils

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 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 CopyFile

func CopyFile(src, dst string) error

func CreateDir

func CreateDir(dirPath string)

CreateDir ...

func CreateFile

func CreateFile(filePath string)

CreateFile ...

func GetUserHome

func GetUserHome() string

GetUserHome ...

func MoveFile

func MoveFile(oldPath string, newPath string)

MoveFile ...

func MoveFiles added in v1.5.0

func MoveFiles(oldPath string, newPath string)

MoveFiles ...

func RemoveDir

func RemoveDir(dirPath string)

RemoveDir ...

func RemoveFile

func RemoveFile(filePath string)

RemoveFile ...

func RemoveFiles added in v1.5.0

func RemoveFiles(filePath string)

RemoveFiles ...

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 ...

func WriteFile

func WriteFile(content string, path string)

WriteFile ...

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