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