util

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDirectory

func CreateDirectory(dir string)

*

  • Create folders if they don't exist

func DownloadFile

func DownloadFile(filepath string, url string) error

*

  • DownloadFile will download a url to a local file.

func GetExecutionDirectory

func GetExecutionDirectory() string

*

  • Get the execution directory

func GetPathRelativeToDirectory

func GetPathRelativeToDirectory(currentDirectory string, rootDirectory string) string

*

  • Get the relative path in relation to the rootDirectory

func GetWorkingDirectory

func GetWorkingDirectory() string

*

  • GetWorkingDirectory gets the current working directory

func IsCIEnvironment

func IsCIEnvironment() (val bool)

*

  • Detect CI

Types

This section is empty.

Jump to

Keyboard shortcuts

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