util

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckForUpdates

func CheckForUpdates(version string) (bool, error)

CheckForUpdates checks GitHub for any version updates

func DownloadFile

func DownloadFile(url string, path string) error

DownloadFile will download a url to a local file

func GenerateTimeString added in v0.0.3

func GenerateTimeString(duration time.Duration) string

GenerateTimeString generates a human readable time string (eg. "1 hour, 2 minutes and 12 seconds")

func GetClobberPath

func GetClobberPath() string

GetClobberPath returns the full path to the Clobber directory

func GetCloverPath

func GetCloverPath() string

GetCloverPath returns the full path to Clover

func GetExtPath added in v0.1.5

func GetExtPath() string

GetExtPath returns the full path to external packages

func GetHomePath

func GetHomePath() string

GetHomePath returns the full path to the user's home directory

func GetLogFilePath added in v0.0.6

func GetLogFilePath() string

GetLogFilePath returns the full path to the current log file

func GetLogsPath added in v0.0.6

func GetLogsPath() string

GetLogsPath returns the full path to the logs directory

func GetSourcePath

func GetSourcePath() string

GetSourcePath returns the full path to the source/work directory

func GetUdkPath

func GetUdkPath() string

GetUdkPath returns the full path to EDK/UDK

func GetVersionDump added in v0.1.5

func GetVersionDump() string

GetVersionDump returns a multi-line string containing the versions/commits for important dependencies and environments, like OS and LLVM versions

func StringReplaceFile

func StringReplaceFile(path string, find string, replace string) error

StringReplaceFile allows you to replace a string in a file

Types

This section is empty.

Jump to

Keyboard shortcuts

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