progress

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 5 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 Spinner

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

Spinner advances frames on a fixed timer and triggers a render callback.

func NewSpinner

func NewSpinner(interval time.Duration, render func()) *Spinner

func (*Spinner) Frame

func (s *Spinner) Frame() rune

func (*Spinner) Stop

func (s *Spinner) Stop()

type Tracker

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

Tracker manages OCR progress rendering in TTY and non-TTY modes.

func New

func New(out io.Writer, isTTY bool, total, concurrency int) *Tracker

func (*Tracker) Finish

func (t *Tracker) Finish()

func (*Tracker) Skip

func (t *Tracker) Skip(filename string)

func (*Tracker) WorkerDone

func (t *Tracker) WorkerDone(slotID int)

func (*Tracker) WorkerError

func (t *Tracker) WorkerError(slotID int, err error)

func (*Tracker) WorkerStart

func (t *Tracker) WorkerStart(slotID int, filename string)

Jump to

Keyboard shortcuts

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