Versions in this module Expand all Collapse all v1 v1.0.0 Sep 4, 2018 Changes in this version + func ByteFormatFunc(v float64) string + func DrawBarASCII(perc float32, width int) string + func DrawBarUTF8(perc float32, width int) string + func FormatDuration(d time.Duration) string + func NoUnitFunc(v float64) string + type BarDrawerFunction func(progress float32, width int) string + type NaiveRateWatcher struct + func NewNaiveRateWatcher() *NaiveRateWatcher + func (nw *NaiveRateWatcher) EstimatedRemaining() time.Duration + func (nw *NaiveRateWatcher) EstimatedUnitsPerSecond() float32 + func (nw *NaiveRateWatcher) HasEstimate() bool + func (nw *NaiveRateWatcher) OverallElapsed() time.Duration + func (nw *NaiveRateWatcher) OverallUnitsPerSecond() float32 + func (nw *NaiveRateWatcher) PercentageComplete() float32 + func (nw *NaiveRateWatcher) String() string + func (nw *NaiveRateWatcher) Update(position, length int64) + type ProgressPrinter struct + Bardrawer BarDrawerFunction + NonTTY bool + Output io.Writer + Ratewatcher RateWatcher + ShowPercentage bool + ShowRate bool + ShowTimeEstimate bool + Title string + UnitFunc UnitFormatFunc + Width int + func NewProgressPrinter(title string, width int, utf8 bool) *ProgressPrinter + func (pp *ProgressPrinter) Clear() + func (pp *ProgressPrinter) Done() + func (pp *ProgressPrinter) Interruptf(format string, args ...interface{}) + func (pp *ProgressPrinter) Reprint() + func (pp *ProgressPrinter) Update(position, length int64) + type ProgressReceiver interface + Update func(progress, length int64) + type RateWatcher interface + EstimatedRemaining func() time.Duration + EstimatedUnitsPerSecond func() float32 + HasEstimate func() bool + OverallElapsed func() time.Duration + OverallUnitsPerSecond func() float32 + PercentageComplete func() float32 + type UnitFormatFunc func(v float64) string + type UpdateAveragingRateWatcher struct + func NewUpdateAveragingRateWatcher(window int) *UpdateAveragingRateWatcher + func (nw *UpdateAveragingRateWatcher) EstimatedRemaining() time.Duration + func (nw *UpdateAveragingRateWatcher) EstimatedUnitsPerSecond() float32 + func (nw *UpdateAveragingRateWatcher) HasEstimate() bool + func (nw *UpdateAveragingRateWatcher) OverallElapsed() time.Duration + func (nw *UpdateAveragingRateWatcher) OverallUnitsPerSecond() float32 + func (nw *UpdateAveragingRateWatcher) PercentageComplete() float32 + func (nw *UpdateAveragingRateWatcher) String() string + func (nw *UpdateAveragingRateWatcher) Update(position, length int64)