{"id":17912655,"url":"https://github.com/danielgatis/go-iterator","last_synced_at":"2025-08-02T06:09:04.678Z","repository":{"id":198820669,"uuid":"701617187","full_name":"danielgatis/go-iterator","owner":"danielgatis","description":"This package provides an iterator interface and a slice iterator implementation","archived":false,"fork":false,"pushed_at":"2023-10-07T05:38:35.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-05T01:39:58.721Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danielgatis.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":"2023-10-07T04:27:03.000Z","updated_at":"2023-10-07T04:27:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"e3c04c55-bad5-4fe5-9861-91b27344ee3d","html_url":"https://github.com/danielgatis/go-iterator","commit_stats":null,"previous_names":["danielgatis/go-iterator"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/danielgatis/go-iterator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielgatis%2Fgo-iterator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielgatis%2Fgo-iterator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielgatis%2Fgo-iterator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielgatis%2Fgo-iterator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielgatis","download_url":"https://codeload.github.com/danielgatis/go-iterator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielgatis%2Fgo-iterator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268340168,"owners_count":24234675,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-28T19:46:23.603Z","updated_at":"2025-08-02T06:09:04.646Z","avatar_url":"https://github.com/danielgatis.png","language":"Go","funding_links":["https://www.buymeacoffee.com/danielgatis"],"categories":[],"sub_categories":[],"readme":"# Go - Iterator\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/danielgatis/go-iterator?style=flat-square)](https://goreportcard.com/report/github.com/danielgatis/go-iterator)\n[![License MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/danielgatis/go-iterator/master/LICENSE)\n[![Go Doc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](https://godoc.org/github.com/danielgatis/go-iterator)\n\nThis package provides an iterator interface and a slice iterator implementation.\n\n## Install\n\n```bash\ngo get -u github.com/danielgatis/go-iterator\n```\n\nAnd then import the package in your code:\n\n```go\nimport \"github.com/danielgatis/go-iterator\"\n```\n\n### Example\n\nAn example described below is one of the use cases.\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/danielgatis/go-iterator\"\n)\n\nfunc main() {\n\tnumbers := []int{1, 2, 3, 4, 5}\n\titer := iterator.NewIterator(numbers)\n\n\tfor iter.HasNext() {\n\t\tvalue := iter.GetNextOrDefault(0)\n\t\tfmt.Println(value)\n\t}\n}\n\n```\n\n```\n❯ go run main.go\n```\n\n### License\n\nCopyright (c) 2023-present [Daniel Gatis](https://github.com/danielgatis)\n\nLicensed under [MIT License](./LICENSE)\n\n### Buy me a coffee\n\nLiked some of my work? Buy me a coffee (or more likely a beer)\n\n\u003ca href=\"https://www.buymeacoffee.com/danielgatis\" target=\"_blank\"\u003e\u003cimg src=\"https://bmc-cdn.nyc3.digitaloceanspaces.com/BMC-button-images/custom_images/orange_img.png\" alt=\"Buy Me A Coffee\" style=\"height: auto !important;width: auto !important;\"\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielgatis%2Fgo-iterator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielgatis%2Fgo-iterator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielgatis%2Fgo-iterator/lists"}