Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BoldColor = color.New(color.OpBold).Render
BoldColor makes text bold
GreenColor makes text green
View Source
var LoadingSpinner = spinner.New(spinner.CharSets[9], 100*time.Millisecond, spinner.WithColor("cyan"), spinner.WithHiddenCursor(true))
LoadingSpinner is a reusable loading spinner
RedColor makes text red
View Source
var Regex386 = `(?i)(i?386|x86_32|amd32|x32)`
Regex386 is a regular express for 386 architectures
View Source
var RegexAmd64 = `(?i)(x86_64|amd64|x64)`
RegexAmd64 is a regular express for amd64 architectures
View Source
var RegexArm64 = `(?i)(arm64|aarch64)`
RegexArm64 is a regular express for arm64 architectures
View Source
var RegexDarwin = `(?i)(darwin|mac(os)?|apple|osx)`
RegexDarwin is a regular express for darwin systems
View Source
var RegexGithub = `(?i)^[A-Za-z0-9\-]+\/[A-Za-z0-9\_\.\-]+(@.+)?$`
RegexGithub is a regular express for valid GitHub repos
View Source
var RegexGithubSearch = `(?i)^[A-Za-z0-9\_\.\-\/]+$`
RegexGithubSearch is a regular express for valid GitHub search queries
View Source
var RegexURL = `(http|ftp|https):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])`
RegexURL is a regular express for valid URLs
View Source
var RegexWindows = `(?i)(windows|win)`
RegexWindows is a regular express for windows systems
YellowColor makes text yellow
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.