Versions in this module Expand all Collapse all v0 v0.0.3 May 5, 2023 Changes in this version type ProgressBar + func (p *ProgressBar) SetOffset(already int) + func (p *ProgressBar) SetOffset64(offset int64) v0.0.2 May 5, 2023 Changes in this version + type Option func(p *ProgressBar) + func OptionClearOnFinish() Option + func OptionEnableColorCodes(colorCodes bool) Option + func OptionFullWidth() Option + func OptionOnCompletion(cmpl func()) Option + func OptionSetDescription(description string) Option + func OptionSetElapsedTime(elapsedTime bool) Option + func OptionSetItsString(iterationString string) Option + func OptionSetPredictTime(predictTime bool) Option + func OptionSetRenderBlankState(r bool) Option + func OptionSetTheme(t Theme) Option + func OptionSetVisibility(visibility bool) Option + func OptionSetWidth(s int) Option + func OptionSetWriter(w io.Writer) Option + func OptionShowBytes(val bool) Option + func OptionShowCount() Option + func OptionShowDescriptionAtLineEnd() Option + func OptionShowElapsedTimeOnFinish() Option + func OptionShowIts() Option + func OptionSpinnerCustom(spinner []string) Option + func OptionSpinnerType(spinnerType int) Option + func OptionThrottle(duration time.Duration) Option + func OptionUseANSICodes(val bool) Option + type ProgressBar struct + func Default(max int64, description ...string) *ProgressBar + func DefaultBytes(maxBytes int64, description ...string) *ProgressBar + func DefaultBytesSilent(maxBytes int64, description ...string) *ProgressBar + func DefaultSilent(max int64, description ...string) *ProgressBar + func New(max int) *ProgressBar + func New64(max int64) *ProgressBar + func NewOptions(max int, options ...Option) *ProgressBar + func NewOptions64(max int64, options ...Option) *ProgressBar + func (p *ProgressBar) Add(num int) error + func (p *ProgressBar) Add64(num int64) error + func (p *ProgressBar) ChangeAlready(already int) + func (p *ProgressBar) ChangeAlready64(already int64) + func (p *ProgressBar) ChangeMax(newMax int) + func (p *ProgressBar) ChangeMax64(newMax int64) + func (p *ProgressBar) Clear() error + func (p *ProgressBar) Close() (err error) + func (p *ProgressBar) Describe(description string) + func (p *ProgressBar) Exit() error + func (p *ProgressBar) Finish() error + func (p *ProgressBar) GetMax() int + func (p *ProgressBar) GetMax64() int64 + func (p *ProgressBar) IsFinished() bool + func (p *ProgressBar) Read(b []byte) (n int, err error) + func (p *ProgressBar) RenderBlank() error + func (p *ProgressBar) Reset() + func (p *ProgressBar) Set(num int) error + func (p *ProgressBar) Set64(num int64) error + func (p *ProgressBar) State() State + func (p *ProgressBar) String() string + func (p *ProgressBar) Write(b []byte) (n int, err error) + type Reader struct + func NewReader(r io.Reader, bar *ProgressBar) Reader + func (r *Reader) Close() (err error) + func (r *Reader) Read(p []byte) (n int, err error) + type State struct + CurrentBytes float64 + CurrentPercent float64 + KBsPerSecond float64 + SecondsLeft float64 + SecondsSince float64 + type Theme struct + AltSaucerHead string + BarEnd string + BarStart string + Saucer string + SaucerHead string + SaucerPadding string