progressbarchart

package
v2.26.4 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProgressLine

func ProgressLine(label string, current, total, maxLabelLength int) string

ProgressLine: same as before

Types

type Task

type Task struct {
	Label        string
	CurrentCount int
	TotalCount   int
}

Task represents a single progress item

type Tasks

type Tasks []Task

func NewTasksFromHistogram

func NewTasksFromHistogram(h *histogram.Histogram) Tasks

func NewTasksFunnelFromHistogram

func NewTasksFunnelFromHistogram(h *histogram.Histogram) Tasks

func (Tasks) ProgressBarChartText

func (tasks Tasks) ProgressBarChartText() string

func (Tasks) SetTotalCountsSum

func (tasks Tasks) SetTotalCountsSum()

SetTotalCountsSum sets each Task's TotalCount to the sum of all CurrentCounts

Jump to

Keyboard shortcuts

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