{"id":23129044,"url":"https://github.com/twiny/poxa","last_synced_at":"2025-04-04T06:25:33.577Z","repository":{"id":188589764,"uuid":"674818327","full_name":"twiny/poxa","owner":"twiny","description":"structured way to manage and rotate through a collection data structure.","archived":false,"fork":false,"pushed_at":"2023-08-16T00:51:21.000Z","size":2,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T17:42:41.038Z","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":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/twiny.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}},"created_at":"2023-08-04T21:35:50.000Z","updated_at":"2024-11-17T18:34:59.000Z","dependencies_parsed_at":"2023-08-16T02:30:32.442Z","dependency_job_id":"42cbbd67-4ff2-4608-a986-d4b1688924d8","html_url":"https://github.com/twiny/poxa","commit_stats":null,"previous_names":["twiny/poxa"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twiny%2Fpoxa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twiny%2Fpoxa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twiny%2Fpoxa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twiny%2Fpoxa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twiny","download_url":"https://codeload.github.com/twiny/poxa/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247130945,"owners_count":20888686,"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-12-17T10:08:10.207Z","updated_at":"2025-04-04T06:25:33.555Z","avatar_url":"https://github.com/twiny.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spinner\n\n## Overview\nSpinner is a simple and efficient Go package that provides a rotating/spinning data structure. It is implemented using Go's new generics feature, allowing it to hold elements of any type. Under the hood, it uses Go's `container/ring` package to maintain a circular list of elements.\n\n## Usage\n\n```bash\ngo get github.com/twiny/poxa\n```\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/twiny/poxa\"\n)\n\nfunc main() {\n\tsp := poxa.NewSpinner[int](1, 2, 3)\n\n\tfor i := 0; i \u003c 5; i++ {\n\t\tfmt.Println(sp.Next())\n\t}\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwiny%2Fpoxa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwiny%2Fpoxa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwiny%2Fpoxa/lists"}