utils

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ANSI_CYAN    = "\x1b[36;1m"
	ANSI_RESET   = "\x1b[0m"
	ANSI_DEFAULT = "\x1b[39;1m"
	ANSI_BLUE    = "\x1b[34;1m"
	ANSI_BLACK   = "\x1b[30;1m"
	ANSI_RED     = "\x1b[31;1m"
	ANSI_GREEN   = "\x1b[32;1m"
	ANSI_YELLOW  = "\x1b[33;1m"
	ANSI_WHITE   = "\x1b[37;1m"
	ANSI_MAGENTA = "\x1b[35;1m"
)

Functions

func CheckIfError

func CheckIfError(err error)

func ColorError added in v1.0.1

func ColorError(format string, args ...interface{})

func ColorImportant added in v1.0.1

func ColorImportant(format string, args ...interface{})

func ColorInfo

func ColorInfo(format string, args ...interface{})

ColorInfo should be used to display messages

func ColorWarning

func ColorWarning(format string, args ...interface{})

Warning should be used to display a warning

func ExitIfError

func ExitIfError(err error)

ExitIfError should be used to naively panics if an error is not nil.

func RunInDir

func RunInDir(dir string, cmd *exec.Cmd)

func ShowIfError

func ShowIfError(err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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