clio

package
v0.0.0-...-2d2b994 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IO

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

func New

func New(opts ...Option) *IO

func (IO) Debugf

func (io IO) Debugf(format string, args ...interface{})

func (IO) Errorf

func (io IO) Errorf(format string, args ...interface{})

func (IO) Infof

func (io IO) Infof(format string, args ...interface{})

func (IO) LogTable

func (io IO) LogTable(cols []string, rows [][]string)

func (IO) Logf

func (io IO) Logf(format string, args ...interface{})

func (IO) Printf

func (io IO) Printf(format string, args ...interface{})

func (*IO) SetVerbosity

func (io *IO) SetVerbosity(v Verbosity)

type Option

type Option func(*IO)

func WithError

func WithError(w io.Writer) Option

func WithOutput

func WithOutput(w io.Writer) Option

func WithVerbosity

func WithVerbosity(v Verbosity) Option

type Verbosity

type Verbosity int
const (
	SilentLevel Verbosity = iota - 1
	DefaultLevel
	InfoLevel
	DebugLevel
)

Jump to

Keyboard shortcuts

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