Documentation ¶
Overview ¶
Package logger provides logging services
Index ¶
- func CleanLine()
- func Error(v ...any)
- func Fatal(v ...any)
- func Info(v ...any)
- func InfoTable(v ...any)
- func LogTimerOn() bool
- func Panic(v ...any)
- func PctProgress(done int32, total int, tick int32)
- func Progress(tick bool, v ...any)
- func TestLog(notDefault bool, a ...interface{})
- func ToggleDecoration()
- func Warn(v ...any)
- type BarOptions
- type BarType
- type ProgressBar
- type Timer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogTimerOn ¶
func LogTimerOn() bool
func PctProgress ¶
func TestLog ¶
func TestLog(notDefault bool, a ...interface{})
TestLog is used to print log lines during testing only
func ToggleDecoration ¶
func ToggleDecoration()
Types ¶
type BarOptions ¶
type BarOptions struct { Enabled bool // enable progress bar Type BarType // if Expanding, the bar doesn't know how many object there will be, so grows Prefix string // the string to display first Fill string // the fill value for progress bar Start int64 // the starting value (defaults to zero) Total int64 // the total (possibly estimated for Expanding) number of objects PrefixColor string // the color of the prefix }
type ProgressBar ¶
type ProgressBar struct { BarOptions // contains filtered or unexported fields }
func NewBar ¶
func NewBar(opts BarOptions) (bar *ProgressBar)
func (*ProgressBar) Tick ¶
func (bar *ProgressBar) Tick()
Click to show internal directories.
Click to hide internal directories.