{"id":17726628,"url":"https://github.com/thedevsaddam/iter","last_synced_at":"2025-03-14T06:32:25.796Z","repository":{"id":88969712,"uuid":"258649253","full_name":"thedevsaddam/iter","owner":"thedevsaddam","description":"Iter provides functionality like Python's range function to iterate over numbers and letters","archived":false,"fork":false,"pushed_at":"2020-04-25T02:11:53.000Z","size":4,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T17:46:33.061Z","etag":null,"topics":["go-iter","golang-iter","iter","iterator","range"],"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/thedevsaddam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2020-04-24T23:49:40.000Z","updated_at":"2023-03-12T08:39:35.000Z","dependencies_parsed_at":"2024-06-20T17:28:52.340Z","dependency_job_id":null,"html_url":"https://github.com/thedevsaddam/iter","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedevsaddam%2Fiter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedevsaddam%2Fiter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedevsaddam%2Fiter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedevsaddam%2Fiter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thedevsaddam","download_url":"https://codeload.github.com/thedevsaddam/iter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243538060,"owners_count":20307100,"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":["go-iter","golang-iter","iter","iterator","range"],"created_at":"2024-10-25T17:06:19.746Z","updated_at":"2025-03-14T06:32:22.976Z","avatar_url":"https://github.com/thedevsaddam.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"iter\n---\n[![Build Status](https://travis-ci.org/thedevsaddam/iter.svg?branch=master)](https://travis-ci.org/thedevsaddam/iter)\n[![Project status](https://img.shields.io/badge/version-v1-green.svg)](https://github.com/thedevsaddam/iter/releases)\n[![Go Report Card](https://goreportcard.com/badge/github.com/thedevsaddam/iter)](https://goreportcard.com/report/github.com/thedevsaddam/iter)\n[![Coverage Status](https://coveralls.io/repos/github/thedevsaddam/iter/badge.svg?branch=master)](https://coveralls.io/github/thedevsaddam/iter)\n[![GoDoc](https://godoc.org/github.com/thedevsaddam/iter?status.svg)](https://pkg.go.dev/github.com/thedevsaddam/iter)\n[![License](https://img.shields.io/dub/l/vibe-d.svg)](LICENSE.md)\n\nIter provides functionality like Python's range function to iterate over numbers and letters\n\n### Installation\n\nInstall the package using\n```go\n$ go get github.com/thedevsaddam/iter\n```\n\n### Usage\n\nTo use the package import it in your `*.go` code\n```go\nimport \"github.com/thedevsaddam/iter\"\n```\n\nLet's see a quick example:\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/thedevsaddam/iter\"\n)\n\nfunc main() {\n\t// sequence: 0-9\n\tfor v := range iter.N(10) {\n\t\tfmt.Printf(\"%d \", v)\n\t}\n\tfmt.Println()\n\t// output: 0 1 2 3 4 5 6 7 8 9\n\n\t// sequence: 5-9\n\tfor v := range iter.N(5, 10) {\n\t\tfmt.Printf(\"%d \", v)\n\t}\n\tfmt.Println()\n\t// output: 5 6 7 8 9\n\n\t// sequence: 1-9, increment by 2\n\tfor v := range iter.N(5, 10, 2) {\n\t\tfmt.Printf(\"%d \", v)\n\t}\n\tfmt.Println()\n\t// output: 5 7 9\n\n\t// sequence: a-e\n\tfor v := range iter.L('a', 'e') {\n\t\tfmt.Printf(\"%s \", string(v))\n\t}\n\tfmt.Println()\n\t// output: a b c d e\n}\n\n```\n\n\n## Bugs and Issues\n\nIf you encounter any bugs or issues, feel free to [open an issue at\ngithub](https://github.com/thedevsaddam/iter/issues).\n\nAlso, you can shoot me an email to\n\u003cmailto:thedevsaddam@gmail.com\u003e for hugs or bugs.\n\n## Contribution\nIf you are interested to make the package better please send pull requests or create an issue so that others can fix.\n[Read the contribution guide here](CONTRIBUTING.md)\n\n\n## License\nThe **iter** is an open-source software licensed under the [MIT License](LICENSE.md).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedevsaddam%2Fiter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthedevsaddam%2Fiter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedevsaddam%2Fiter/lists"}