Versions in this module Expand all Collapse all v0 v0.0.1 Feb 24, 2017 Changes in this version + var Empty byte = '-' + var ErrMaxCurrentReached = errors.New("errors: current value is greater total value") + var Fill byte = '=' + var Head byte = '>' + var LeftEnd byte = '[' + var Out = os.Stdout + var RefreshInterval = time.Millisecond * 10 + var RightEnd byte = ']' + var Width = 70 + func Listen() + func Start() + func Stop() + type Bar struct + Empty byte + Fill byte + Head byte + LeftEnd byte + RightEnd byte + TimeStarted time.Time + Total int + Width int + func AddBar(total int) *Bar + func NewBar(total int) *Bar + func (b *Bar) AppendCompleted() *Bar + func (b *Bar) AppendElapsed() *Bar + func (b *Bar) AppendFunc(f DecoratorFunc) *Bar + func (b *Bar) Bytes() []byte + func (b *Bar) CompletedPercent() float64 + func (b *Bar) CompletedPercentString() string + func (b *Bar) Current() int + func (b *Bar) Incr() bool + func (b *Bar) PrependCompleted() *Bar + func (b *Bar) PrependElapsed() *Bar + func (b *Bar) PrependFunc(f DecoratorFunc) *Bar + func (b *Bar) Set(n int) error + func (b *Bar) String() string + func (b *Bar) TimeElapsed() time.Duration + func (b *Bar) TimeElapsedString() string + type DecoratorFunc func(b *Bar) string + type Progress struct + Bars []*Bar + Out io.Writer + RefreshInterval time.Duration + Width int + func New() *Progress + func (p *Progress) AddBar(total int) *Bar + func (p *Progress) Bypass() io.Writer + func (p *Progress) Listen() + func (p *Progress) SetOut(o io.Writer) + func (p *Progress) SetRefreshInterval(interval time.Duration) + func (p *Progress) Start() + func (p *Progress) Stop()