Documentation
¶
Index ¶
- func AppendIfMissing(slice []string, i string) []string
- func Check(err error, message string) bool
- func CheckIfInstalled(binary string) bool
- func DownloadToFile(uri string, dst string) error
- func ErrorCheck(err error, message string)
- func ErrorWithHelp(cmd *cobra.Command, message string)
- func HTTPDownload(uri string) ([]byte, error)
- func HandleError(err error, args ...string) bool
- func Keys(arr map[string]string) []string
- func LineWith(lines string, text string) string
- func LocationHash() string
- func RandStringBytesRmndr(n int) string
- func RemoveFromPath(s string) string
- func StringInSlice(a string, list []string) bool
- func UniqueStringMerge(aString string, bString string) string
- func WriteFile(dst string, d []byte) error
- type RunCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendIfMissing ¶
func CheckIfInstalled ¶
CheckIfInstalled usees command -v to check if a binary is current in the path. Returns true if it is installed
func DownloadToFile ¶
func ErrorCheck ¶
func ErrorWithHelp ¶
ErrorWithHelp Show show error message, help menu and exit
func HTTPDownload ¶
func HandleError ¶
HandleError prints error with fail printer if it exists
func LocationHash ¶
func LocationHash() string
func RandStringBytesRmndr ¶
func RemoveFromPath ¶
func StringInSlice ¶
func UniqueStringMerge ¶
Types ¶
type RunCommand ¶
Click to show internal directories.
Click to hide internal directories.