schollz / schollz/progressbar

Consume int for new progress bar

Open
#129 1 comment 1 reaction 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.