Documentation ¶
Overview ¶
A super minimalistic library for progressbars in golang.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bar ¶
type Bar struct { Value int64 Total int64 Description string Throttle int64 // contains filtered or unexported fields }
The bar class, do not initialize directly, instead, use NewBar.
func NewBar ¶
Makes a new bar and initializes it. This will call bar.Display(), so be careful not to call it to early in your program.
func (*Bar) Add ¶
Adds an int to the value of the bar. This also adds a rate aswell with the same number. Rate defines whether to add a rate.
func (*Bar) Finish ¶
func (bar *Bar) Finish()
Makes some newlines and finishes the bar. This is usually called automatically once the bar is full.
Click to show internal directories.
Click to hide internal directories.