Consume int for new progress bar
Open
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 4.7k
- Forks
- 258
- Avg merge
- 13h 31m
- Merged PRs (30d)
- 1
Description
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?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the progressbar.Default entry point shown in the issue and trace how its collection length argument is accepted. Check the existing package tests, if present, for constructor behavior; done means a caller can pass an int such as len(sets.Repos) without the explicit int64 cast while existing int64 usage remains supported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100