progressbar icon indicating copy to clipboard operation
progressbar copied to clipboard

Consume int for new progress bar

Open mih-kopylov opened this issue 3 years ago • 1 comments

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 there.

Is there a change to consume int aside of int64?

mih-kopylov avatar Jul 27 '22 16:07 mih-kopylov

yeah seems like a job for generics, now that they are available. Would accept a PR for this

schollz avatar Aug 07 '22 23:08 schollz