Documentation ¶
Index ¶
- func Debug(payload ...any)
- func Debugf(format string, a ...any)
- func Error(err any, message string)
- func Errorf(err any, format string, a ...any)
- func Fatal(err any, message string)
- func Fatalf(err any, format string, a ...any)
- func GetLogo() string
- func HeaderInfof(format string, a ...any)
- func Info(message string)
- func Infof(format string, a ...any)
- func Note(text string)
- func Question(text string)
- func SetLogLevel(lvl LogLevel)
- func Warn(message string)
- func Warnf(format string, a ...any)
- type LogLevel
- type Spinner
- func (p *Spinner) Debugf(format string, a ...any)
- func (p *Spinner) Errorf(err error, format string, a ...any)
- func (p *Spinner) Fatalf(err error, format string, a ...any)
- func (p *Spinner) Stop()
- func (p *Spinner) Success()
- func (p *Spinner) Successf(format string, a ...any)
- func (p *Spinner) Updatef(format string, a ...any)
- func (p *Spinner) Warnf(format string, a ...any)
- func (p *Spinner) Write(text []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HeaderInfof ¶
func SetLogLevel ¶
func SetLogLevel(lvl LogLevel)
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 ¶
Click to show internal directories.
Click to hide internal directories.