{"id":15557315,"url":"https://github.com/icholy/flagslice","last_synced_at":"2025-03-24T23:49:05.278Z","repository":{"id":66103619,"uuid":"313693764","full_name":"icholy/flagslice","owner":"icholy","description":"Go package for reading flags into a slice","archived":false,"fork":false,"pushed_at":"2020-11-18T20:01:48.000Z","size":33,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-30T03:13:19.672Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/icholy.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":"2020-11-17T17:29:32.000Z","updated_at":"2020-11-19T16:59:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"d7a74acc-27b4-4c79-b28a-e2f3616ea00f","html_url":"https://github.com/icholy/flagslice","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icholy%2Fflagslice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icholy%2Fflagslice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icholy%2Fflagslice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icholy%2Fflagslice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/icholy","download_url":"https://codeload.github.com/icholy/flagslice/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245372367,"owners_count":20604490,"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-10-02T15:17:12.832Z","updated_at":"2025-03-24T23:49:05.251Z","avatar_url":"https://github.com/icholy.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flagslice\n\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/icholy/flagslice)](https://pkg.go.dev/github.com/icholy/flagslice)\n\n\u003e This package provides a reflect based solution for reading flags into a slice.\n\n## Supported Types:\n\n* `bool`\n* `int`\n* `int64`\n* `uint`\n* `uint64`\n* `float64`\n* `string`\n* `time.Duration`\n* anything implementing `flag.Value`\n\n## Example\n\n``` go\npackage main\n\nimport (\n\t\"flag\"\n\t\"fmt\"\n\n\t\"github.com/icholy/flagslice\"\n)\n\nfunc main() {\n\tvar names []string\n\tflagslice.Var(\u0026names, \"name\", \"a name\")\n\tflag.Parse()\n\tfor _, name := range names {\n\t\tfmt.Println(name)\n\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficholy%2Fflagslice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficholy%2Fflagslice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficholy%2Fflagslice/lists"}