message

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 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 ...interface{})

func Debugf

func Debugf(format string, a ...interface{})

func Error

func Error(err interface{}, message string)

func Errorf

func Errorf(err interface{}, format string, a ...interface{})

func Fatal

func Fatal(err interface{}, message string)

func Fatalf

func Fatalf(err interface{}, format string, a ...interface{})
func GetLogo() string

GetLogo returns the awesome menu ascii logo

func HeaderInfof

func HeaderInfof(format string, a ...interface{})

func Info

func Info(message string)

func Infof

func Infof(format string, a ...interface{})

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 ...interface{})

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 ...interface{}) *Spinner

func (*Spinner) Debugf

func (p *Spinner) Debugf(format string, a ...interface{})

func (*Spinner) Errorf

func (p *Spinner) Errorf(err error, format string, a ...interface{})

func (*Spinner) Fatalf

func (p *Spinner) Fatalf(err error, format string, a ...interface{})

func (*Spinner) Stop

func (p *Spinner) Stop()

func (*Spinner) Success

func (p *Spinner) Success()

func (*Spinner) Successf

func (p *Spinner) Successf(format string, a ...interface{})

func (*Spinner) Updatef

func (p *Spinner) Updatef(format string, a ...interface{})

func (*Spinner) Warnf

func (p *Spinner) Warnf(format string, a ...interface{})

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