output

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RawRed     = color.New(color.FgRed)
	RawGreen   = color.New(color.FgGreen)
	RawBlue    = color.New(color.FgBlue)
	RawYellow  = color.New(color.FgYellow)
	RawCyan    = color.New(color.FgCyan)
	RawMagenta = color.New(color.FgMagenta)

	Red    = RawRed.SprintFunc()
	Green  = RawGreen.SprintFunc()
	Blue   = RawBlue.SprintFunc()
	Yellow = RawYellow.SprintFunc()
)

Functions

func Close

func Close()

func Done

func Done() <-chan struct{}

func Err

func Err(prefix, format string, args ...any)

func Fatal

func Fatal(format string, args ...any)

func Info

func Info(prefix, format string, args ...any)

func Std

func Std(prefix, format string, args ...any)

func Warn

func Warn(prefix, format string, args ...any)

Types

type Outputter

type Outputter struct {
	// contains filtered or unexported fields
}

func NewOutputter

func NewOutputter(name string) Outputter

func (Outputter) Child

func (o Outputter) Child(prefix string) Outputter

func (Outputter) Err

func (o Outputter) Err(format string, args ...any)

func (Outputter) Info

func (o Outputter) Info(format string, args ...any)

func (Outputter) Std

func (o Outputter) Std(format string, args ...any)

func (Outputter) Warn

func (o Outputter) Warn(format string, args ...any)

Jump to

Keyboard shortcuts

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