utils

package
v2.2.10 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearSignals

func ClearSignals(sgn chan os.Signal)

func DownloadToFile

func DownloadToFile(downloadURL, filePath string) error

func ExtractURLFromString

func ExtractURLFromString(str string) string

func GetDaysSinceRFC3339String

func GetDaysSinceRFC3339String(date string) (int, error)

func GetLatestReleaseFromGitHub

func GetLatestReleaseFromGitHub(repoName string) (*gitHubReleaseType, error)

func OpenURLInBrowser

func OpenURLInBrowser(url string) error

func RenderProgressSpinnerWithMessages

func RenderProgressSpinnerWithMessages(complete, quit chan bool, loadMessages, afterLoadMessages []string)

func RunOnCtrlC

func RunOnCtrlC(cleanupFn func()) chan os.Signal

func ShowConfirmationPrompt

func ShowConfirmationPrompt(msg string) (bool, error)

func WaitAndOpenURL

func WaitAndOpenURL(url string, sgn chan bool, interval int)

func WaitForResponsiveURL

func WaitForResponsiveURL(url string, intervalSeconds int)

Ignores all error and waits for URL to be responsive by sending HEAD request every intervalSeconds

Types

This section is empty.

Jump to

Keyboard shortcuts

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