{"id":15650709,"url":"https://github.com/liamg/loading","last_synced_at":"2025-05-12T06:58:00.227Z","repository":{"id":41263470,"uuid":"508816602","full_name":"liamg/loading","owner":"liamg","description":"A collection of highly customisable loading bars for Go CLI apps.","archived":false,"fork":false,"pushed_at":"2024-08-06T10:46:03.000Z","size":374,"stargazers_count":37,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-12T06:57:53.894Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liamg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-29T19:12:19.000Z","updated_at":"2025-05-04T00:23:26.000Z","dependencies_parsed_at":"2024-06-18T21:19:25.434Z","dependency_job_id":"848eaf55-481b-497c-91be-86efb1ea4dd1","html_url":"https://github.com/liamg/loading","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liamg%2Floading","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liamg%2Floading/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liamg%2Floading/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liamg%2Floading/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liamg","download_url":"https://codeload.github.com/liamg/loading/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253692389,"owners_count":21948316,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T12:35:34.480Z","updated_at":"2025-05-12T06:58:00.203Z","avatar_url":"https://github.com/liamg.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ⏳ loading\n\nA collection of highly customisable loading bars for Go CLI apps.\n\n![Demo gif](demo.gif)\n\n## Basic Usage\n\n```go\npackage main\n\nimport (\n    \"github.com/liamg/loading/pkg/bar\"\n    \"time\"\n)\n\nfunc main() {\n\n    // create a bar\n    loadingBar := bar.New()\n\n    // set the total to 100\n    loadingBar.SetTotal(100)\n\n    // increment the bar to 100 over 10 seconds\n    for i := 0; i \u003c= 100; i++ {\n        time.Sleep(time.Millisecond * 100)\n        loadingBar.SetCurrent(i)\n    }\n}\n\n```\n\nSee the [examples](https://github.com/liamg/loading/tree/main/_examples) or the gallery below for more inspiration.\n\n## Bar Anatomy\n\n![The anatomy of a bar](anatomy.png)\n\n1. The label, set with `bar.OptionWithLabel(\"my label\")`.\n2. The graphical component, set with `bar.OptionWithRenderFunc(bar.RenderRainbow)`\n3. The statistics component, set with `bar.OptionWithStatsFuncs(bar.StatsTimeRemaining)`\n\n## Example Gallery\n\n![Gallery gif](gallery.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliamg%2Floading","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliamg%2Floading","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliamg%2Floading/lists"}