{"id":41380495,"url":"https://github.com/ianfoo/txtspin","last_synced_at":"2026-01-23T10:56:46.239Z","repository":{"id":57551443,"uuid":"259356656","full_name":"ianfoo/txtspin","owner":"ianfoo","description":"Text-based spinners for Go CLI programs","archived":false,"fork":false,"pushed_at":"2020-04-27T20:33:57.000Z","size":135,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T05:03:01.155Z","etag":null,"topics":["cli","go","golang"],"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/ianfoo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-27T14:42:58.000Z","updated_at":"2024-06-20T05:03:01.156Z","dependencies_parsed_at":"2022-09-26T18:41:28.139Z","dependency_job_id":null,"html_url":"https://github.com/ianfoo/txtspin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ianfoo/txtspin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianfoo%2Ftxtspin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianfoo%2Ftxtspin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianfoo%2Ftxtspin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianfoo%2Ftxtspin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ianfoo","download_url":"https://codeload.github.com/ianfoo/txtspin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianfoo%2Ftxtspin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28689102,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T05:48:07.525Z","status":"ssl_error","status_checked_at":"2026-01-23T05:48:07.129Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cli","go","golang"],"created_at":"2026-01-23T10:56:45.552Z","updated_at":"2026-01-23T10:56:46.226Z","avatar_url":"https://github.com/ianfoo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# txtspin\n\nA little Go package that adds a spinner and an optional message to\ntasks that may take a minute to run.\n\nA number of default Spinners are defined, or you can create one with a slice of\nstrings as the frames of the animation. Run `example/example.go` to see a quick\ndemo of the defined styles, or experiment with different patterns and speeds.\n\n[![Asciicast demo: click to visit](demo.gif)](https://asciinema.org/a/EESP65f2tk9vlF1LQcxdhSDm3)\n\n\n### Tip\n\nFor best flexibility, the `Spinner` function takes a function that takes takes\nno parameters and returns nothing. If the operation you want to call takes\narguments, or returns values, just wrap it in a small function that closes over\nvalues that you can inspect after the operation has finished.\n```\nvar (\n\terr    error\n\tresult Result\n\tf             = func() { result, err = MyPossiblyErroringOperation(arg) }\n\tspinner       = txtspin.New(txtspin.StyleDefault)\n)\nspinner(f, \"running slow op!\")\n\n```\n\n\n### Caveats\n\nThis should only be used if it's known that the output is bound for a TTY.\nYou can use [go-isatty](https://github.com/mattn/go-isatty) to determine\nthis.\n\nThis was written for fun late one night and carries the commensurate\nguarantees of stability and well-testedness.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianfoo%2Ftxtspin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fianfoo%2Ftxtspin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianfoo%2Ftxtspin/lists"}