{"id":16371580,"url":"https://github.com/tom-draper/go-spinners","last_synced_at":"2025-06-29T03:35:04.278Z","repository":{"id":50509343,"uuid":"515287983","full_name":"tom-draper/go-spinners","owner":"tom-draper","description":"A collection of progress spinners for Go.","archived":false,"fork":false,"pushed_at":"2022-07-29T17:10:17.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-24T17:40:55.184Z","etag":null,"topics":["animation","cli-spinner","cli-spinners","go","golang","loading","loading-animations","loading-spinner","progress-bar","spinner","spinners"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tom-draper.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-18T17:56:02.000Z","updated_at":"2022-07-29T17:11:33.000Z","dependencies_parsed_at":"2022-09-26T21:31:15.287Z","dependency_job_id":null,"html_url":"https://github.com/tom-draper/go-spinners","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tom-draper/go-spinners","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tom-draper%2Fgo-spinners","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tom-draper%2Fgo-spinners/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tom-draper%2Fgo-spinners/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tom-draper%2Fgo-spinners/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tom-draper","download_url":"https://codeload.github.com/tom-draper/go-spinners/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tom-draper%2Fgo-spinners/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262528322,"owners_count":23324534,"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":["animation","cli-spinner","cli-spinners","go","golang","loading","loading-animations","loading-spinner","progress-bar","spinner","spinners"],"created_at":"2024-10-11T03:08:56.013Z","updated_at":"2025-06-29T03:35:04.239Z","avatar_url":"https://github.com/tom-draper.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Spinners\nA collection of progress spinners for Go.\n\n![SpinnerDemo](https://user-images.githubusercontent.com/41476809/181807553-316d0f69-426a-4559-9268-d50a8ae9d611.gif)\n\n## Installation\n\n```bash\ngo get github.com/tom-draper/go-spinners\n```\n\n## Usage\n\nImport the package into your project.\n\n```go\nimport spinners \"github.com/tom-draper/go-spinners\"\n```\n\nCreate a spinner with the \u003ccode\u003eSpinner\u003c/code\u003e function, passing in the name of the spinner.\n\n```go\ns := spinners.Spinner(\"line\")\ns.Start()\ntime.Sleep(time.Second * 5) // Perform computation\ns.Stop()\n```\n\nPrefix text can be specified with \u003ccode\u003eSetPrefix\u003c/code\u003e to appear before the spinner animation. Similarly, a postfix can be set with \u003ccode\u003eSetPostfix\u003c/code\u003e.\n\n```go\ns := spinners.Spinner(\"flip\")\ns.Start()\ns.SetPrefix(\"Loading\")\ntime.Sleep(time.Second * 5) // Perform computation\ns.Stop()\n```\n\nThe animation speed can be modified using the \u003ccode\u003eSetDelay\u003c/code\u003e function. The default delay is 100 milliseconds.\n\n```go\ns := spinners.Spinner(\"dots2\")\ns.SetDelay(time.Millisecond * 500)\ns.Start()\ntime.Sleep(time.Second * 5) // Perform computation\ns.Stop()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftom-draper%2Fgo-spinners","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftom-draper%2Fgo-spinners","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftom-draper%2Fgo-spinners/lists"}