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 ¶
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.
Click to show internal directories.
Click to hide internal directories.