Documentation ¶
Index ¶
- Constants
- Variables
- func CheckIfAlreadyExist(path string) bool
- func CheckIfDirExist(dirString string) error
- func CreateDirStrucutre(dirString string) error
- func FatalCheck(err error, errorMsg string, v ...interface{})
- func GetIPv4StringArray(ips []net.IP) []string
- func JoinFilePartials(files []string, out string) error
- func MemoryBytesToString(byteCount int64) string
- func MkdirIfNotExist(folder string) error
- func PrintInstalledGos(gos []string)
- func RemoveAll(files []string) error
- func RemoveFilePartials(url string) error
- func UntarToDestination(source string, destination string) error
Constants ¶
Variables ¶
var ENV_FILE string = `` /* 329-byte string literal not displayed */
var GOS_REGEXP *regexp.Regexp = getGosRegexp()
Functions ¶
func CheckIfAlreadyExist ¶
func CheckIfDirExist ¶
func CreateDirStrucutre ¶
Checks if a directory is present, if it is return no error if not Create the provide directory structure provided in dirString creating all necessery parents
func FatalCheck ¶
Check if the error is not nil printing the error and panic after that.
func GetIPv4StringArray ¶
Returns a string of IPv4 address from a list of IPs returned after lookup of a hostname for IPs
func JoinFilePartials ¶
Gets a list of files and joins them into a single file with name out
func MemoryBytesToString ¶
Takes byte count in integer format as input and returns a string describing download size denoted by the bytecount
func MkdirIfNotExist ¶
Takes the name of the folder and create directory as according with permissions 755
func PrintInstalledGos ¶
func PrintInstalledGos(gos []string)
func RemoveFilePartials ¶
Remove downloaded file partials corresponding to the url
func UntarToDestination ¶
Untar source to destination
Types ¶
This section is empty.