# Functions
Any decorator displays text, that can be changed during decorator's lifetime via provided DecorFunc.
AverageETA decorator.
AverageSpeed decorator with dynamic unit measure adjustment.
Conditional returns decorator `a` if condition is true, otherwise decorator `b`.
Counters decorator with dynamic unit measure adjustment.
CountersKibiByte is a wrapper around Counters with predefined unit UnitKiB (bytes/1024).
CountersKiloByte is a wrapper around Counters with predefined unit UnitKB (bytes/1000).
CountersNoUnit is a wrapper around Counters with no unit param.
Current decorator with dynamic unit measure adjustment.
CurrentKibiByte is a wrapper around Current with predefined unit UnitKiB (bytes/1024).
CurrentKiloByte is a wrapper around Current with predefined unit UnitKB (bytes/1000).
CurrentNoUnit is a wrapper around Current with no unit param.
Elapsed decorator.
EwmaETA exponential-weighted-moving-average based ETA decorator.
EwmaSpeed exponential-weighted-moving-average based speed decorator.
FixedIntervalTimeNormalizer returns implementation of TimeNormalizer.
FmtAsSpeed adds "/s" to the end of the input formatter.
InvertedCurrent decorator with dynamic unit measure adjustment.
InvertedCurrentKibiByte is a wrapper around InvertedCurrent with predefined unit UnitKiB (bytes/1024).
InvertedCurrentKiloByte is a wrapper around InvertedCurrent with predefined unit UnitKB (bytes/1000).
InvertedCurrentNoUnit is a wrapper around InvertedCurrent with no unit param.
MaxTolerateTimeNormalizer returns implementation of TimeNormalizer.
Merge wraps its decorator argument with intention to sync width with several decorators of another bar.
MovingAverageETA decorator relies on MovingAverage implementation to calculate its average.
MovingAverageSpeed decorator relies on MovingAverage implementation to calculate its average.
Name decorator displays text that is set once and can't be changed during decorator's lifetime.
NewAverageETA decorator with user provided start time.
NewAverageSpeed decorator with dynamic unit measure adjustment and user provided start time.
NewElapsed returns elapsed time decorator.
NewMedian is fixed last 3 samples median MovingAverage.
NewPercentage percentage decorator with custom format string.
NewThreadSafeMovingAverage converts provided ewma.MovingAverage into thread safe ewma.MovingAverage.
OnAbort returns decorator, which wraps provided decorator with sole purpose to display provided message on abort event.
OnComplete returns decorator, which wraps provided decorator with sole purpose to display provided message on complete event.
OnCondition applies decorator only if a condition is true.
OnPredicate applies decorator only if a predicate evaluates to true.
Percentage returns percentage decorator.
Predicative returns decorator `a` if predicate evaluates to true, otherwise decorator `b`.
Spinner returns spinner decorator.
Total decorator with dynamic unit measure adjustment.
TotalKibiByte is a wrapper around Total with predefined unit UnitKiB (bytes/1024).
TotalKiloByte is a wrapper around Total with predefined unit UnitKB (bytes/1000).
TotalNoUnit is a wrapper around Total with no unit param.
# Constants
DextraSpace bit adds extra space, makes sense with DSyncWidth only.
DidentRight bit specifies identation direction.
DSyncSpace is shortcut for DSyncWidth|DextraSpace.
DSyncSpaceR is shortcut for DSyncWidth|DextraSpace|DidentRight.
DSyncWidth bit enables same column width synchronization.
DSyncWidthR is shortcut for DSyncWidth|DidentRight.
TimeStyle kinds.
TimeStyle kinds.
TimeStyle kinds.
TimeStyle kinds.
No description provided by the author
No description provided by the author
# Variables
Global convenience instances of WC with sync width bit set.
Global convenience instances of WC with sync width bit set.
Global convenience instances of WC with sync width bit set.
Global convenience instances of WC with sync width bit set.
# Structs
Statistics consists of progress related statistics, that Decorator may need.
WC is a struct with two public fields W and C, both of int type.
# Interfaces
AverageDecorator interface.
Configurator interface.
Decorator interface.
EwmaDecorator interface.
ShutdownListener interface.
Synchronizer interface.
TimeNormalizer interface.
Wrapper interface.
# Type aliases
DecorFunc func type.
SizeB1000 named type, which implements fmt.Formatter interface.
SizeB1024 named type, which implements fmt.Formatter interface.
TimeNormalizerFunc is function type adapter to convert function into TimeNormalizer.
TimeStyle enum.