Versions in this module Expand all Collapse all v0 v0.27.1 Jul 30, 2020 Changes in this version + const DefaultWidth + func Clampf(val, min, max float64) float64 + func GetFixedLengthDuration(d, maxDuration time.Duration) (result string) + func GetFixedLengthFloatFormat(maxValue float64, precision uint) (formatStr string) + func GetFixedLengthIntFormat(maxValue int64) (formatStr string) + type ProgressBar struct + func New(options ...ProgressBarOption) *ProgressBar + func (pb *ProgressBar) Left() string + func (pb *ProgressBar) Modify(options ...ProgressBarOption) + func (pb *ProgressBar) Render(maxLeft, widthDelta int) ProgressBarRender + type ProgressBarOption func(*ProgressBar) + func WithConstLeft(left string) ProgressBarOption + func WithConstProgress(progress float64, right ...string) ProgressBarOption + func WithHijack(hijack func() string) ProgressBarOption + func WithLeft(left func() string) ProgressBarOption + func WithLogger(logger *logrus.Entry) ProgressBarOption + func WithProgress(progress func() (float64, []string)) ProgressBarOption + func WithStatus(status Status) ProgressBarOption + type ProgressBarRender struct + Color bool + Hijack string + Left string + Right []string + func (pbr *ProgressBarRender) Progress() string + func (pbr *ProgressBarRender) Status() string + func (pbr ProgressBarRender) String() string + type Status rune + const Done + const Interrupted + const Running + const Stopping + const Waiting