prelude

package
v0.0.0-...-b629d69 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LOG_INFO  = color.New(color.FgGreen).Add(color.Bold)
	LOG_WARN  = color.New(color.FgYellow).Add(color.Bold)
	LOG_ERROR = color.New(color.FgRed).Add(color.Bold)

	LOG_INFO_HEADER  = LOG_INFO.Sprint("[INFO]")
	LOG_DEBUG_HEADER = LOG_INFO.Sprint("[DEBUG]")
	LOG_WARN_HEADER  = LOG_WARN.Sprint("[WARN]")
	LOG_ERROR_HEADER = LOG_ERROR.Sprint("[ERRO]")
)

Functions

func AsyncWait

func AsyncWait(f WaitFunc) chan None

func IsNil

func IsNil(o Any) bool

func LogDebug

func LogDebug(f string, i ...interface{})

func LogError

func LogError(f string, i ...interface{})

func LogInfo

func LogInfo(f string, i ...interface{})

func LogWarn

func LogWarn(f string, i ...interface{})

func Must

func Must(e error)

func MustOk

func MustOk(e bool)

Types

type Any

type Any = interface{}

type AppCmdArgs

type AppCmdArgs struct {
	BuildConfig string
	RunTaskName string
	CI          bool
	Force       bool
	Debug       bool
}

func FetchCmdArgs

func FetchCmdArgs() *AppCmdArgs

type None

type None = struct{}

type WaitFunc

type WaitFunc func(chan None)

Jump to

Keyboard shortcuts

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