{"id":16970241,"url":"https://github.com/inozuma/flagger","last_synced_at":"2025-03-21T19:14:25.090Z","repository":{"id":31731887,"uuid":"35297851","full_name":"Inozuma/flagger","owner":"Inozuma","description":"golang flag structure parsing","archived":false,"fork":false,"pushed_at":"2015-05-08T23:29:41.000Z","size":136,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-26T13:43:39.541Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Inozuma.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-08T19:29:34.000Z","updated_at":"2015-05-08T23:19:56.000Z","dependencies_parsed_at":"2022-09-08T13:22:42.840Z","dependency_job_id":null,"html_url":"https://github.com/Inozuma/flagger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inozuma%2Fflagger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inozuma%2Fflagger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inozuma%2Fflagger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inozuma%2Fflagger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Inozuma","download_url":"https://codeload.github.com/Inozuma/flagger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244852681,"owners_count":20521159,"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-14T00:27:45.688Z","updated_at":"2025-03-21T19:14:25.071Z","avatar_url":"https://github.com/Inozuma.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flagger\n`flagger` is a simple package wrapping `flag` standard package allowing the declaration of flags via a structure.\n\n# Installation\n\n```\ngo get -u github.com/inozuma/flagger\n```\n\n# Usage\n\n## Simple usage\n\nSupposing we have a `Configuration`:\n\n```go\ntype Configuration struct {\n    Enable  bool   `flag:\"enable,false,enable something\"`\n    Address string `flag:\"addr,:8080,address to something\"`\n}\n```\n\nYou can call `flagger.Flag` to declare the flag `enable`:\n\n```go\nconfig := \u0026Configuration{}\n\nif err := flagger.Flag(config); err != nil {\n    panic(err)\n}\n```\n\nAnd like `flag`, parse your flags with `flag.Parse`:\n\n```go\nflag.Parse()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finozuma%2Fflagger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finozuma%2Fflagger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finozuma%2Fflagger/lists"}