{"id":23039647,"url":"https://github.com/ckaznocha/gflag","last_synced_at":"2025-10-07T13:20:27.952Z","repository":{"id":57644450,"uuid":"439992371","full_name":"ckaznocha/gflag","owner":"ckaznocha","description":"A go1.18 wrapper to provide a simple generics based API for defining command line flags.","archived":false,"fork":false,"pushed_at":"2021-12-19T23:45:26.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-08T14:13:36.660Z","etag":null,"topics":["flag","flags","flagset","generics","go","golang"],"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/ckaznocha.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}},"created_at":"2021-12-19T23:41:02.000Z","updated_at":"2021-12-20T00:52:49.000Z","dependencies_parsed_at":"2022-08-30T05:12:11.071Z","dependency_job_id":null,"html_url":"https://github.com/ckaznocha/gflag","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/ckaznocha%2Fgflag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckaznocha%2Fgflag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckaznocha%2Fgflag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckaznocha%2Fgflag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ckaznocha","download_url":"https://codeload.github.com/ckaznocha/gflag/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246911487,"owners_count":20853655,"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":["flag","flags","flagset","generics","go","golang"],"created_at":"2024-12-15T18:36:29.799Z","updated_at":"2025-10-07T13:20:22.920Z","avatar_url":"https://github.com/ckaznocha.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gflag\n\nA go1.18 wrapper to provide simple generics based API for defining command line flags.\n\n## Example\n\n```\npackage main\n\nimport (\n\t\"flag\"\n\t\"fmt\"\n\t\"time\"\n\n\t\"github.com/ckaznocha/gflag\"\n)\n\nfunc main() {\n\tsalutation := gflag.Define(\"salutation\", \"Hello\", \"a salutation\")\n\tsubject := gflag.Define(\"subject\", \"user\", \"a subject to greet\")\n\twait := gflag.Define(\"wait\", 1*time.Second, \"how long  to  wait before greeting\")\n\tflag.Parse()\n\n\ttime.Sleep(*wait)\n\n\tfmt.Printf(\"%s, %s\\n\", *salutation, *subject)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fckaznocha%2Fgflag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fckaznocha%2Fgflag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fckaznocha%2Fgflag/lists"}