progress

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 3 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

Overview

Package progress provides progress bar utilities for pdf-cli.

Index

Constants

This section is empty.

Variables

View Source
var ProgressBarTheme = progressbar.Theme{
	Saucer:        "=",
	SaucerHead:    ">",
	SaucerPadding: " ",
	BarStart:      "[",
	BarEnd:        "]",
}

ProgressBarTheme is the default theme for progress bars.

Functions

func FinishProgressBar

func FinishProgressBar(bar *progressbar.ProgressBar)

FinishProgressBar prints a newline after the progress bar if it exists.

func NewBytesProgressBar

func NewBytesProgressBar(description string, total int64) *progressbar.ProgressBar

NewBytesProgressBar creates a progress bar for byte-based progress (e.g., downloads).

func NewProgressBar

func NewProgressBar(description string, total, threshold int) *progressbar.ProgressBar

NewProgressBar creates a consistent progress bar with the given description and total count. Returns nil if total is at or below the threshold for showing progress.

Types

This section is empty.

Jump to

Keyboard shortcuts

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