processbar

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountPrint added in v0.1.0

func CountPrint(tag string, count, prev int) int

func RegionPrint

func RegionPrint(region string, count, prev int, flag bool) (int, bool)

Types

type RegionTracker added in v0.1.7

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

RegionTracker encapsulates region iteration progress tracking state.

func NewRegionTracker added in v0.1.7

func NewRegionTracker() *RegionTracker

NewRegionTracker creates a new RegionTracker instance.

func (*RegionTracker) Count added in v0.1.7

func (t *RegionTracker) Count() int

Count returns the total count of items found across all regions.

func (*RegionTracker) Finish added in v0.1.7

func (t *RegionTracker) Finish()

Finish cleans up the progress line if needed. Should be called with defer after creating the tracker.

func (*RegionTracker) Update added in v0.1.7

func (t *RegionTracker) Update(region string, newItems int)

Update prints progress for a region and updates internal state. newItems is the count of items found in this region.

Jump to

Keyboard shortcuts

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