utils

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ColorError = color.New(color.FgHiRed)
View Source
var ColorInfo = color.New(color.FgHiYellow)
View Source
var ColorMajorVersion = color.New(color.FgHiYellow)
View Source
var ColorSuccess = color.New(color.FgHiGreen)

Functions

func BytesToString

func BytesToString(data []byte) string

func CheckError added in v1.6.5

func CheckError(err error, format string)

func DownloadWithProgress added in v1.6.0

func DownloadWithProgress(url string, tarName string, destFolder string) (err error)

func Errorf added in v1.6.5

func Errorf(format string, a ...interface{})

func Errorln added in v1.6.5

func Errorln(a ...interface{})

func Fatal added in v1.8.0

func Fatal(a ...interface{})

func Fatalf added in v1.8.0

func Fatalf(format string, a ...interface{})

func Find added in v1.2.0

func Find(slice []string, val string) bool

Find takes a slice and looks for an element in it.

func Infof added in v1.6.5

func Infof(format string, a ...interface{})

func Infoln added in v1.6.5

func Infoln(a ...interface{})

func Major added in v1.6.5

func Major(a ...interface{})

func Print added in v1.8.0

func Print(a ...interface{})

func Printf added in v1.8.0

func Printf(format string, a ...interface{})

func Println added in v1.8.0

func Println(a ...interface{})

func Successf added in v1.6.5

func Successf(format string, a ...interface{})

func Successln added in v1.6.5

func Successln(a ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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