{"id":18232888,"url":"https://github.com/mdw-go/spin","last_synced_at":"2025-04-08T11:36:53.861Z","repository":{"id":24845008,"uuid":"28259914","full_name":"mdw-go/spin","owner":"mdw-go","description":"Another simple console terminal spinner.","archived":false,"fork":false,"pushed_at":"2024-10-19T15:55:00.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-10T05:33:25.841Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mdw-go.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2014-12-20T07:08:00.000Z","updated_at":"2024-10-19T15:54:59.000Z","dependencies_parsed_at":"2024-10-20T15:04:02.934Z","dependency_job_id":null,"html_url":"https://github.com/mdw-go/spin","commit_stats":null,"previous_names":["mdw-go/spin"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdw-go%2Fspin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdw-go%2Fspin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdw-go%2Fspin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdw-go%2Fspin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdw-go","download_url":"https://codeload.github.com/mdw-go/spin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247836817,"owners_count":21004481,"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-11-04T14:20:43.214Z","updated_at":"2025-04-08T11:36:53.826Z","avatar_url":"https://github.com/mdw-go.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spin\n--\n    import \"github.com/mdw-go/spin\"\n\nPackage spin implements a simple console spinner. See the tests and examples for\nexamples.\n\n## Usage\n\n```go\nvar (\n\t// StyleLine is a simple example of the kinds of styles you could pass into the New... functions.\n\tStyleLine = []string{\"|\", \"/\", \"-\", \"\\\\\"}\n\n\t// StyleSteps is another example of the kinds of styles you could pass into the New... functions.\n\tStyleSteps = []string{\"▁\", \"▃\", \"▄\", \"▅\", \"▆\", \"▇\", \"█\", \"▇\", \"▆\", \"▅\", \"▄\", \"▃\"}\n\n\t// StyleShutter is another example of the kinds of styles you could pass into the New... functions.\n\tStyleShutter = []string{\"▉\", \"▊\", \"▋\", \"▌\", \"▍\", \"▎\", \"▏\", \"▎\", \"▍\", \"▌\", \"▋\", \"▊\", \"▉\"}\n)\n```\n\n#### func  GoStart\n\n```go\nfunc GoStart()\n```\nGoStart forwards to a package-level *Spinner (for convenience).\n\n#### func  Start\n\n```go\nfunc Start()\n```\nStart forwards to a package-level *Spinner (for convenience).\n\n#### func  Stop\n\n```go\nfunc Stop()\n```\nStop forwards to a package-level *Spinner (for convenience).\n\n#### type Spinner\n\n```go\ntype Spinner struct {\n}\n```\n\nSpinner prints a repeating pattern to os.Stdout by printing a sequence of\ncharacters interspersed with carriage returns. A Spinner is controlled by the\nprovided methods: Start, GoStart (like calling `go Start()`, and Stop.\n\n#### func  New\n\n```go\nfunc New(style []string, delay time.Duration) *Spinner\n```\nNew creates a spinner which you can start and stop.\n\n#### func  NewWithPadding\n\n```go\nfunc NewWithPadding(style []string, delay time.Duration, prefix, suffix string) *Spinner\n```\nNewWithPadding creates a spinner which you can start and stop. Allows a prefix\nand suffix to be printed along with the specified style.\n\n#### func (*Spinner) GoStart\n\n```go\nfunc (self *Spinner) GoStart()\n```\nGoStart begins the spinner on a fresh goroutine.\n\n#### func (*Spinner) Start\n\n```go\nfunc (self *Spinner) Start()\n```\nStart begins the spinner on the current goroutine (hopefully you've got another\ngoroutine that can call Stop...).\n\n#### func (*Spinner) Stop\n\n```go\nfunc (self *Spinner) Stop()\n```\nStop sends a signal to stop the spinner.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdw-go%2Fspin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdw-go%2Fspin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdw-go%2Fspin/lists"}