Versions in this module Expand all Collapse all v3 v3.0.6 Sep 1, 2020 Changes in this version + const Bytes + const Color + const ReturnSymbol + const SIBytesPrefix + const Static + const Terminal + const Version + func CellCount(s string) int + func RegisterElement(name string, el Element, adaptive bool) + func StripString(s string, w int) string + func StripStringToBuffer(s string, w int, buf *bytes.Buffer) + type Element interface + ProgressElement func(state *State, args ...string) string + type ElementFunc func(state *State, args ...string) string + var ElementBar ElementFunc = func(state *State, args ...string) string { ... } + var ElementCounters ElementFunc = func(state *State, args ...string) string { ... } + var ElementCycle ElementFunc = func(state *State, args ...string) string { ... } + var ElementElapsedTime ElementFunc = func(state *State, args ...string) string { ... } + var ElementPercent ElementFunc = func(state *State, args ...string) string { ... } + var ElementRemainingTime ElementFunc = func(state *State, args ...string) string { ... } + var ElementSpeed ElementFunc = func(state *State, args ...string) string { ... } + var ElementString ElementFunc = func(state *State, args ...string) string { ... } + func (e ElementFunc) ProgressElement(state *State, args ...string) string + type ProgressBar struct + func New(total int) *ProgressBar + func New64(total int64) *ProgressBar + func Start64(total int64) *ProgressBar + func StartNew(total int) *ProgressBar + func (pb *ProgressBar) Add(value int) *ProgressBar + func (pb *ProgressBar) Add64(value int64) *ProgressBar + func (pb *ProgressBar) Current() int64 + func (pb *ProgressBar) Err() error + func (pb *ProgressBar) Finish() *ProgressBar + func (pb *ProgressBar) Format(v int64) string + func (pb *ProgressBar) Get(key interface{}) interface{} + func (pb *ProgressBar) GetBool(key interface{}) bool + func (pb *ProgressBar) Increment() *ProgressBar + func (pb *ProgressBar) IsStarted() bool + func (pb *ProgressBar) NewProxyReader(r io.Reader) *Reader + func (pb *ProgressBar) NewProxyWriter(r io.Writer) *Writer + func (pb *ProgressBar) ProgressElement(s *State, args ...string) string + func (pb *ProgressBar) Set(key, value interface{}) *ProgressBar + func (pb *ProgressBar) SetCurrent(value int64) *ProgressBar + func (pb *ProgressBar) SetErr(err error) *ProgressBar + func (pb *ProgressBar) SetMaxWidth(maxWidth int) *ProgressBar + func (pb *ProgressBar) SetRefreshRate(dur time.Duration) *ProgressBar + func (pb *ProgressBar) SetTemplate(tmpl ProgressBarTemplate) *ProgressBar + func (pb *ProgressBar) SetTemplateString(tmpl string) *ProgressBar + func (pb *ProgressBar) SetTotal(value int64) *ProgressBar + func (pb *ProgressBar) SetWidth(width int) *ProgressBar + func (pb *ProgressBar) SetWriter(w io.Writer) *ProgressBar + func (pb *ProgressBar) Start() *ProgressBar + func (pb *ProgressBar) StartTime() time.Time + func (pb *ProgressBar) String() string + func (pb *ProgressBar) Total() int64 + func (pb *ProgressBar) Width() (width int) + func (pb *ProgressBar) Write() *ProgressBar + type ProgressBarTemplate string + var Default ProgressBarTemplate = `{{string . "prefix"}}{{counters . }} {{bar . }} {{percent . }} {{speed . }}{{string . "suffix"}}` + var Full ProgressBarTemplate = `{{string . "prefix"}}{{counters . }} {{bar . }} {{percent . }} {{speed . }} {{rtime . "ETA %s"}}{{string . "suffix"}}` + var Simple ProgressBarTemplate = `{{string . "prefix"}}{{counters . }} {{bar . }} {{percent . }}{{string . "suffix"}}` + func (pbt ProgressBarTemplate) New(total int) *ProgressBar + func (pbt ProgressBarTemplate) Start(total int) *ProgressBar + func (pbt ProgressBarTemplate) Start64(total int64) *ProgressBar + type Reader struct + func (r *Reader) Close() (err error) + func (r *Reader) Read(p []byte) (n int, err error) + type State struct + func (s *State) AdaptiveElWidth() int + func (s *State) Id() uint64 + func (s *State) IsAdaptiveWidth() bool + func (s *State) IsFinished() bool + func (s *State) IsFirst() bool + func (s *State) Time() time.Time + func (s *State) Total() int64 + func (s *State) Value() int64 + func (s *State) Width() int + type Writer struct + func (r *Writer) Close() (err error) + func (r *Writer) Write(p []byte) (n int, err error) Other modules containing this package github.com/andrewarrow/pb