progressbar
progressbar copied to clipboard
A really basic thread-safe progress bar for Golang applications
Changes to allow either int or int64 when calling various 'New' methods to create new progressbar instances. ```go items := make([]int, 999) bar1 := progressbar.Default(len(items)) bar2 := progressbar.Default(int64(len(items))) ``` This...
Add an option to keep the render of time elapsed when the bar has finished. ```go bar := progressbar.NewOptions64( 10, ) // Output: // 100% |████████████████████████████████████████| bar := progressbar.NewOptions64( 10,...
I'd like to keep the elapsed time visible once the progress bar finishes, just like the four example animations in the main README show. This seems to be the normal...
When creating a new progress bar based on some collection length, it requires casting to `int64`. ``` bar := progressbar.Default(int64(len(sets.Repos))) ``` Not really nice, though I understand why it's int64...
## Affected version 3.9.0 ## Steps To Reproduce Create the following code example ```go package main import ( "fmt" "github.com/schollz/progressbar/v3" "time" ) func main() { count := 10 progressBar :=...
If you create a new default bar and immediately try to `RenderBlank()`, nothing will render. To work around this: ```go func NewBar(max int, description ...string) *progressbar.ProgressBar { bar := progressbar.Default(int64(max),...
I occasionally see residual junk after my progress bar in situations when the total width decreases. This can happen when the description shrinks or when the timestamp wraps around (eg...
I **ran** this two example ```go bar := progressbar.Default(100) for i := 0; i < 100; i++ { bar.Add(1) time.Sleep(40 * time.Millisecond) } ``` ```go req, _ := http.NewRequest("GET", "https://dl.google.com/go/go1.14.2.src.tar.gz",...
Even if max=-1, I want to see s.SecondsSince (total time), is there a way to customize it now?
Using atomics instead of mutexes can improve performance(just a small micro optimization). Also made a benchmark, so you can see the difference. I'd make a PR if interested @schollz ```go...