Versions in this module Expand all Collapse all v1 v1.24.0 Oct 1, 2020 v1.23.0 Sep 14, 2020 v1.22.7 Sep 7, 2020 v1.22.6 Sep 6, 2020 v1.22.5 Sep 6, 2020 v1.22.4 Sep 6, 2020 v1.22.3 Sep 6, 2020 v1.22.2 Sep 6, 2020 v1.22.1 Sep 6, 2020 v1.22.0 Sep 6, 2020 Changes in this version + const DSyncSpace + const DSyncSpaceR + const DSyncWidth + const DSyncWidthR + const DextraSpace + const DidentRight + const UnitKB + const UnitKiB + var WCSyncSpace = WC + var WCSyncSpaceR = WC + var WCSyncWidth = WC + var WCSyncWidthR = WC + func FmtAsSpeed(input fmt.Formatter) fmt.Formatter + func NewMedian() ewma.MovingAverage + func NewThreadSafeMovingAverage(average ewma.MovingAverage) ewma.MovingAverage + type AverageDecorator interface + AverageAdjust func(time.Time) + type Configurator interface + GetConf func() WC + SetConf func(WC) + type DecorFunc func(Statistics) string + type Decorator interface + Decor func(Statistics) string + func Any(fn DecorFunc, wcc ...WC) Decorator + func AverageETA(style TimeStyle, wcc ...WC) Decorator + func AverageSpeed(unit int, format string, wcc ...WC) Decorator + func Counters(unit int, pairFmt string, wcc ...WC) Decorator + func CountersKibiByte(pairFmt string, wcc ...WC) Decorator + func CountersKiloByte(pairFmt string, wcc ...WC) Decorator + func CountersNoUnit(pairFmt string, wcc ...WC) Decorator + func Current(unit int, format string, wcc ...WC) Decorator + func CurrentKibiByte(format string, wcc ...WC) Decorator + func CurrentKiloByte(format string, wcc ...WC) Decorator + func CurrentNoUnit(format string, wcc ...WC) Decorator + func Elapsed(style TimeStyle, wcc ...WC) Decorator + func EwmaETA(style TimeStyle, age float64, wcc ...WC) Decorator + func EwmaSpeed(unit int, format string, age float64, wcc ...WC) Decorator + func InvertedCurrent(unit int, format string, wcc ...WC) Decorator + func InvertedCurrentKibiByte(format string, wcc ...WC) Decorator + func InvertedCurrentKiloByte(format string, wcc ...WC) Decorator + func InvertedCurrentNoUnit(format string, wcc ...WC) Decorator + func Merge(decorator Decorator, placeholders ...WC) Decorator + func MovingAverageETA(style TimeStyle, average ewma.MovingAverage, normalizer TimeNormalizer, ...) Decorator + func MovingAverageSpeed(unit int, format string, average ewma.MovingAverage, wcc ...WC) Decorator + func Name(str string, wcc ...WC) Decorator + func NewAverageETA(style TimeStyle, startTime time.Time, normalizer TimeNormalizer, wcc ...WC) Decorator + func NewAverageSpeed(unit int, format string, startTime time.Time, wcc ...WC) Decorator + func NewElapsed(style TimeStyle, startTime time.Time, wcc ...WC) Decorator + func NewPercentage(format string, wcc ...WC) Decorator + func OnComplete(decorator Decorator, message string) Decorator + func Percentage(wcc ...WC) Decorator + func Spinner(frames []string, wcc ...WC) Decorator + func Total(unit int, format string, wcc ...WC) Decorator + func TotalKibiByte(format string, wcc ...WC) Decorator + func TotalKiloByte(format string, wcc ...WC) Decorator + func TotalNoUnit(format string, wcc ...WC) Decorator + type EwmaDecorator interface + EwmaUpdate func(int64, time.Duration) + type ShutdownListener interface + Shutdown func() + type SizeB1000 int64 + func (i SizeB1000) String() string + func (self SizeB1000) Format(st fmt.State, verb rune) + type SizeB1024 int64 + func (i SizeB1024) String() string + func (self SizeB1024) Format(st fmt.State, verb rune) + type Statistics struct + AvailableWidth int + Completed bool + Current int64 + ID int + Refill int64 + Total int64 + type Synchronizer interface + Sync func() (chan int, bool) + type TimeNormalizer interface + Normalize func(time.Duration) time.Duration + func FixedIntervalTimeNormalizer(updInterval int) TimeNormalizer + func MaxTolerateTimeNormalizer(maxTolerate time.Duration) TimeNormalizer + type TimeNormalizerFunc func(time.Duration) time.Duration + func (f TimeNormalizerFunc) Normalize(src time.Duration) time.Duration + type TimeStyle int + const ET_STYLE_GO + const ET_STYLE_HHMM + const ET_STYLE_HHMMSS + const ET_STYLE_MMSS + type WC struct + C int + W int + func (wc *WC) FormatMsg(msg string) string + func (wc *WC) GetConf() WC + func (wc *WC) Init() WC + func (wc *WC) SetConf(conf WC) + func (wc *WC) Sync() (chan int, bool) + type Wrapper interface + Base func() Decorator