MCPcopy
hub / github.com/pterm/pterm / WithTotal

Method WithTotal

progressbar_printer.go:82–85  ·  view source on GitHub ↗

WithTotal sets the total value of the ProgressbarPrinter.

(total int)

Source from the content-addressed store, hash-verified

80
81// WithTotal sets the total value of the ProgressbarPrinter.
82func (p ProgressbarPrinter) WithTotal(total int) *ProgressbarPrinter {
83 p.Total = total
84 return &p
85}
86
87// WithCurrent sets the current value of the ProgressbarPrinter.
88func (p ProgressbarPrinter) WithCurrent(current int) *ProgressbarPrinter {

Callers 13

mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls