message

package
v0.17.0-9-g0880709 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(payload ...any)

func Debugf

func Debugf(format string, a ...any)

func Error

func Error(err any, message string)

func Errorf

func Errorf(err any, format string, a ...any)

func Fatal

func Fatal(err any, message string)

func Fatalf

func Fatalf(err any, format string, a ...any)
func GetLogo() string

GetLogo returns the awesome menu ascii logo

func HeaderInfof

func HeaderInfof(format string, a ...any)

func Info

func Info(message string)

func Infof

func Infof(format string, a ...any)

func Note

func Note(text string)

func Question

func Question(text string)

func SetLogLevel

func SetLogLevel(lvl LogLevel)

func Warn

func Warn(message string)

func Warnf

func Warnf(format string, a ...any)

Types

type LogLevel

type LogLevel int
const (
	// WarnLevel level. Non-critical entries that deserve eyes.
	WarnLevel LogLevel = iota
	// InfoLevel level. General operational entries about what's going on inside the
	// application.
	InfoLevel
	// DebugLevel level. Usually only enabled when debugging. Very verbose logging.
	DebugLevel
	// TraceLevel level. Designates finer-grained informational events than the Debug.
	TraceLevel
)

func GetLogLevel

func GetLogLevel() LogLevel

type Spinner

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

func NewProgressSpinner

func NewProgressSpinner(format string, a ...any) *Spinner

func (*Spinner) Debugf

func (p *Spinner) Debugf(format string, a ...any)

func (*Spinner) Errorf

func (p *Spinner) Errorf(err error, format string, a ...any)

func (*Spinner) Fatalf

func (p *Spinner) Fatalf(err error, format string, a ...any)

func (*Spinner) Stop

func (p *Spinner) Stop()

func (*Spinner) Success

func (p *Spinner) Success()

func (*Spinner) Successf

func (p *Spinner) Successf(format string, a ...any)

func (*Spinner) Updatef

func (p *Spinner) Updatef(format string, a ...any)

func (*Spinner) Warnf

func (p *Spinner) Warnf(format string, a ...any)

func (*Spinner) Write

func (p *Spinner) Write(text []byte) (int, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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