output

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2020 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatString

func FormatString(_ verbosity.Verbosity, msg string, kv ...label.KeyValue) string

Types

type Output

type Output func(ctx context.Context, verb verbosity.Verbosity, msg string, args ...label.KeyValue) (int, error)

func Ansi

func Ansi(out Output) Output

func Buffer

func Buffer(buf *bytes.Buffer) Output

func Format

func Format(out Output, format *formatter.Formatter) Output

func New

func New(w io.Writer, format func(verb verbosity.Verbosity, msg string, kv ...label.KeyValue) string) Output

func None

func None(out Output) Output

func Quiet

func Quiet() Output

func Stderr

func Stderr() Output

func Stdout

func Stdout() Output

func Verbosity

func Verbosity(out Output, verb verbosity.Verbosity) Output

func (Output) Debug

func (o Output) Debug(ctx context.Context, args ...interface{})

func (Output) DebugKV

func (o Output) DebugKV(ctx context.Context, msg string, kv ...label.KeyValue)

func (Output) Info

func (o Output) Info(ctx context.Context, args ...interface{})

func (Output) InfoKV

func (o Output) InfoKV(ctx context.Context, msg string, kv ...label.KeyValue)

func (Output) Print

func (o Output) Print(ctx context.Context, args ...interface{})

func (Output) PrintKV

func (o Output) PrintKV(ctx context.Context, msg string, kv ...label.KeyValue)

func (Output) Printf

func (o Output) Printf(ctx context.Context, format string, args ...interface{})

func (Output) Println

func (o Output) Println(ctx context.Context, args ...interface{})

func (Output) Trace

func (o Output) Trace(ctx context.Context, args ...interface{})

func (Output) TraceKV

func (o Output) TraceKV(ctx context.Context, msg string, kv ...label.KeyValue)

func (Output) Write

func (o Output) Write(b []byte) (int, error)

func (Output) Writer

func (o Output) Writer(ctx context.Context, verb verbosity.Verbosity) io.Writer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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