Documentation
¶
Index ¶
- func ToCtx(ctx context.Context, v Progress) context.Context
- type Mode
- type Option
- func WithBytes(enabled bool) Option
- func WithCleanOnFinish() Option
- func WithDescription(desc string) Option
- func WithElapsedTime(elapsed bool) Option
- func WithIts() Option
- func WithMax(m int64) Option
- func WithOnComplete(f func()) Option
- func WithPredictTime(predict bool) Option
- func WithShowElapsedTime() Option
- func WithSpinnerType(spinnerType int) Option
- func WithTheme(t Theme) Option
- func WithWidth(w int) Option
- type OptionFunc
- type Progress
- type Theme
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option interface {
Opt() progressbar.Option
}
func WithCleanOnFinish ¶
func WithCleanOnFinish() Option
func WithDescription ¶
func WithElapsedTime ¶
func WithOnComplete ¶
func WithOnComplete(f func()) Option
func WithPredictTime ¶
func WithShowElapsedTime ¶
func WithShowElapsedTime() Option
func WithSpinnerType ¶
type OptionFunc ¶
type OptionFunc func() progressbar.Option
func (OptionFunc) Opt ¶
func (o OptionFunc) Opt() progressbar.Option
Click to show internal directories.
Click to hide internal directories.