output

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Blue    = color.New(color.FgBlue)
	Cyan    = color.New(color.FgCyan)
	Green   = color.New(color.FgGreen)
	Magenta = color.New(color.FgMagenta)
	Red     = color.New(color.FgRed)
	White   = color.New(color.FgWhite)
	Yellow  = color.New(color.FgYellow)
)

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(noPrefix bool, 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)

func (Outputter) Write added in v0.0.8

func (o Outputter) Write(payload []byte) (int, error)

Jump to

Keyboard shortcuts

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