progress

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package progress provides utility functions for progress tracking and other common tasks.

Package progress provides utility functions for progress calculation and tracking.

Index

Constants

This section is empty.

Variables

View Source
var DefaultProgressBar getter.ProgressTracker = &progressBar{} //nolint:gochecknoglobals // Default progress bar instance

DefaultProgressBar is the default instance of a cheggaaa progress bar.

Functions

func CalculatePercentage

func CalculatePercentage(value, total float64) string

CalculatePercentage calculates the percentage of a given value relative to a total, formatted to two decimal places. It returns "0.00%" if the total is zero to prevent division by zero errors.

Types

This section is empty.

Jump to

Keyboard shortcuts

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