{"id":19411178,"url":"https://github.com/go-kratos/feature","last_synced_at":"2025-07-21T05:06:50.740Z","repository":{"id":183259995,"uuid":"669845463","full_name":"go-kratos/feature","owner":"go-kratos","description":"Feature gates. ","archived":false,"fork":false,"pushed_at":"2023-07-24T16:01:00.000Z","size":13,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-06-16T11:06:15.827Z","etag":null,"topics":["feature-flags","feature-gates","features"],"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/go-kratos.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,"zenodo":null}},"created_at":"2023-07-23T16:05:31.000Z","updated_at":"2024-01-02T22:24:39.000Z","dependencies_parsed_at":"2025-04-24T10:35:15.999Z","dependency_job_id":"bc9df4b1-093e-468a-b6a8-610673d56c26","html_url":"https://github.com/go-kratos/feature","commit_stats":null,"previous_names":["go-kratos/feature"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/go-kratos/feature","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-kratos%2Ffeature","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-kratos%2Ffeature/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-kratos%2Ffeature/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-kratos%2Ffeature/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/go-kratos","download_url":"https://codeload.github.com/go-kratos/feature/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-kratos%2Ffeature/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266242072,"owners_count":23898102,"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":["feature-flags","feature-gates","features"],"created_at":"2024-11-10T12:19:22.651Z","updated_at":"2025-07-21T05:06:50.721Z","avatar_url":"https://github.com/go-kratos.png","language":"Go","readme":"### Feature Gates\nFeature gates are a set of key=value pairs that describe features. You can turn these features on or off using the `--feature-gates=foo=true,bar=false` command line flag on each component.\n\n### Usage\n```go\nvar foo = feature.MustRegister(\"Foo\", false,\n\tfeature.WithFeatureStage(feature.StageAlpha),\n\tfeature.WithFeatureFromVersion(\"0.0.1\"),\n\tfeature.WithFeatureToVersion(\"1.0.0\"),\n\tfeature.WithFeatureDescription(\"A foo feature\"),\n)\nif foo.Enabled() {\n    // TODO Feature\n}\n```\n### References\n- [Kubernetes Feature Gates](https://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-kratos%2Ffeature","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgo-kratos%2Ffeature","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-kratos%2Ffeature/lists"}