# Functions
AskForConfirmation requests a y/n from user.
CheckClose is used to check the return from Close in a defer statement.
CheckErr exits with a log.Fatal() if an error is encountered.
DownloadFile retrieves a file.
EnsureHTTPStatus will verify a URL responds with a given response code within the Timeout period (in seconds).
Error will print an red error message but will not exit.
Failed will print a red error message and exit with failure.
FormatPlural is a simple wrapper which returns different strings based on the count value.
GetGlobalDdevDir returns ~/.ddev, the global caching directory.
GetInput reads input from an input buffer and returns the result as a string.
IsPortActive checks to see if the given port on docker IP is answering.
NewHTTPOptions returns a new HTTPOptions struct with some sane defaults.
RandString returns a random string of given length n.
SetInputScanner allows you to override the default input scanner with your own.
Success will indicate an operation succeeded with colored confirmation text.
Warning will present the user with warning text.
# Structs
HTTPOptions defines the URL and other common HTTP options for EnsureHTTPStatus.