{"id":13499765,"url":"https://github.com/ian-kent/envconf","last_synced_at":"2025-04-12T05:53:56.748Z","repository":{"id":22432496,"uuid":"25770528","full_name":"ian-kent/envconf","owner":"ian-kent","description":"Configure Go applications from the environment","archived":false,"fork":false,"pushed_at":"2014-10-26T12:12:40.000Z","size":100,"stargazers_count":11,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T01:23:41.626Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ian-kent.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-26T12:12:26.000Z","updated_at":"2022-09-26T09:20:34.000Z","dependencies_parsed_at":"2022-08-20T13:50:17.810Z","dependency_job_id":null,"html_url":"https://github.com/ian-kent/envconf","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/ian-kent%2Fenvconf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ian-kent%2Fenvconf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ian-kent%2Fenvconf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ian-kent%2Fenvconf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ian-kent","download_url":"https://codeload.github.com/ian-kent/envconf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248525156,"owners_count":21118616,"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-07-31T22:00:41.501Z","updated_at":"2025-04-12T05:53:56.723Z","avatar_url":"https://github.com/ian-kent.png","language":"Go","funding_links":[],"categories":["Configuration","配置","Miscellaneous","配置管理 `配置解析库`","\u003cspan id=\"组态-configuration\"\u003e组态 Configuration\u003c/span\u003e","Uncategorized","配置管理"],"sub_categories":["Advanced Console UIs","标准CLI","Standard CLI","高级控制台界面","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","高級控制台界面","标准 CLI"],"readme":"envconf\n=======\n\nConfigure your Go application from the environment.\n\nSupports most basic Go types and works nicely with the built in `flag` package.\n\n```go\npackage main\n\nimport(\n  \"flag\"\n  \"fmt\"\n  . \"github.com/ian-kent/envconf\"\n)\n\nfunc main() {\n  count := flag.Int(\"count\", FromEnvP(\"COUNT\", 15).(int), \"Count target\")\n  flag.Parse()\n  for i := 1; i \u003c= *count; i++ {\n    fmt.Printf(\"%d\\n\", i)\n  }\n}\n```\n\n## Licence\n\nCopyright ©‎ 2014, Ian Kent (http://iankent.uk).\n\nReleased under MIT license, see [LICENSE](LICENSE.md) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fian-kent%2Fenvconf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fian-kent%2Fenvconf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fian-kent%2Fenvconf/lists"}