helper

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFolderIfNotExists added in v0.20.0

func CreateFolderIfNotExists(path string) error

CreateFolderIfNotExists creates a folder at the given path if it doesn't already exist.

func DoesPathExist added in v0.15.0

func DoesPathExist(path string) bool

DoesPathExist checks if a given path exists in the filesystem.

func DownloadFile added in v0.20.0

func DownloadFile(dst, src string) error

DownloadFile downloads a file from an url to the local fs.

func DownloadFileIfNotExists added in v0.20.0

func DownloadFileIfNotExists(dst, src string) error

DownloadFileIfNotExists runs downloadFile() if the destination file doesn't already exist.

func IsInSlice added in v0.18.0

func IsInSlice(slice []string, val string) bool

IsInSlice returns true if a given string is found in the given slice and false if not.

func SkipNetworkBasedTests added in v0.19.0

func SkipNetworkBasedTests(t *testing.T)

SkipNetworkBasedTests skips network/internet dependent tests when the env variable PROJI_SKIP_NETWORK_TESTS is set to 1

func StrToUInt added in v0.15.0

func StrToUInt(num string) (uint, error)

StrToUInt converts a string into a uint.

func WantTo added in v0.15.0

func WantTo(question string) bool

WantTo waits for a valid user input to confirm if he wants to do whatever was asked for.

Types

This section is empty.

Jump to

Keyboard shortcuts

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