Documentation
¶
Index ¶
Constants ¶
View Source
const DEFAULT_WIDTH = 100
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProgressBar ¶
func NewProgressBar ¶
func NewProgressBar(total int, colors ...color.Attribute) *ProgressBar
func (*ProgressBar) Increment ¶
func (bar *ProgressBar) Increment(size int)
func (*ProgressBar) SetColor ¶ added in v0.0.7
func (bar *ProgressBar) SetColor(attributes ...color.Attribute)
var cha chan struct{}
func (*ProgressBar) Start ¶
func (bar *ProgressBar) Start()
func (*ProgressBar) Wait ¶
func (bar *ProgressBar) Wait()
type ProgressWriter ¶
func NewProgressWriter ¶
func NewProgressWriter(w io.Writer, total int) ProgressWriter
Click to show internal directories.
Click to hide internal directories.