progress

package
v1.10.0 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

Logger handles progress output to stderr. Logging format:

2006-01-02 15:04:05 [scanning] message   — progress (suppressed in quiet mode)
2006-01-02 15:04:05 [error] message      — errors (never suppressed)
⠋ label... (Xms)                         — spinner animation
✓ label (Xms)                            — step done
○ label (skipped)                        — step skipped

func NewLogger

func NewLogger(quiet bool) *Logger

NewLogger creates a Logger. If quiet is true, progress messages are suppressed.

func NewNoop

func NewNoop() *Logger

NewNoop returns a Logger that suppresses all output.

func (*Logger) Error

func (l *Logger) Error(format string, args ...any)

Error always prints to stderr regardless of quiet mode. Format: [error] message

func (*Logger) Progress

func (l *Logger) Progress(format string, args ...any)

Progress prints a progress message to stderr (suppressed in quiet mode). Format: [scanning] message

func (*Logger) StepDone

func (l *Logger) StepDone(elapsed time.Duration)

StepDone completes the current step, showing elapsed time.

func (*Logger) StepSkip

func (l *Logger) StepSkip(reason string)

StepSkip marks the current step as skipped.

func (*Logger) StepStart

func (l *Logger) StepStart(label string)

StepStart begins a labeled progress step with a spinner.

Jump to

Keyboard shortcuts

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