{"id":17993942,"url":"https://github.com/jimeh/envctl","last_synced_at":"2025-10-11T16:35:24.041Z","repository":{"id":54984882,"uuid":"329280551","full_name":"jimeh/envctl","owner":"jimeh","description":"Go package providing test helper functions to temporarily change and restore environment variables.","archived":false,"fork":false,"pushed_at":"2021-01-17T20:57:05.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-18T08:02:04.348Z","etag":null,"topics":["environment-variables","go","golang","helper","testing","testing-tools"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/jimeh/envctl","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/jimeh.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-01-13T11:03:37.000Z","updated_at":"2021-08-17T15:15:44.000Z","dependencies_parsed_at":"2022-08-14T08:10:40.650Z","dependency_job_id":null,"html_url":"https://github.com/jimeh/envctl","commit_stats":null,"previous_names":["jimeh/climatecontrol"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jimeh/envctl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimeh%2Fenvctl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimeh%2Fenvctl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimeh%2Fenvctl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimeh%2Fenvctl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jimeh","download_url":"https://codeload.github.com/jimeh/envctl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimeh%2Fenvctl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270962391,"owners_count":24675965,"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","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["environment-variables","go","golang","helper","testing","testing-tools"],"created_at":"2024-10-29T20:13:31.929Z","updated_at":"2025-10-11T16:35:23.954Z","avatar_url":"https://github.com/jimeh.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  envctl\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003e\n    Go package providing test helper functions to temporarily change and restore\n    environment variables.\n  \u003c/strong\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://pkg.go.dev/github.com/jimeh/envctl\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/%E2%80%8B-reference-387b97.svg?logo=go\u0026logoColor=white\"\n  alt=\"Go Reference\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/jimeh/envctl/releases\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/v/tag/jimeh/envctl?label=release\" alt=\"GitHub tag (latest SemVer)\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/jimeh/envctl/actions\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/workflow/status/jimeh/envctl/CI.svg?logo=github\" alt=\"Actions Status\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://codeclimate.com/github/jimeh/envctl\"\u003e\n    \u003cimg src=\"https://img.shields.io/codeclimate/coverage/jimeh/envctl.svg?logo=code%20climate\" alt=\"Coverage\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/jimeh/envctl/issues\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/issues-raw/jimeh/envctl.svg?style=flat\u0026logo=github\u0026logoColor=white\"\nalt=\"GitHub issues\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/jimeh/envctl/pulls\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/issues-pr-raw/jimeh/envctl.svg?style=flat\u0026logo=github\u0026logoColor=white\" alt=\"GitHub pull requests\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/jimeh/envctl/blob/master/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/jimeh/envctl.svg?style=flat\" alt=\"License Status\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n```go\nos.Setenv(\"PORT\", \"8080\")\n\nenvctl.With(map[string]string{\"BIND\": \"0.0.0.0\", \"PORT\": \"3000\"}, func() {\n\tfmt.Println(os.Getenv(\"BIND\") + \":\" + os.Getenv(\"PORT\"))\n})\n\nfmt.Println(os.Getenv(\"BIND\") + \":\" + os.Getenv(\"PORT\"))\n```\n\n```\n0.0.0.0:3000\n:8080\n```\n\n## Documentation\n\nPlease see the\n[Go Reference](https://pkg.go.dev/github.com/jimeh/envctl#section-documentation)\nfor documentation and examples.\n\n## Benchmarks\n\nBenchmark reports and graphs are available here:\nhttps://jimeh.me/envctl/dev/bench/\n\n## License\n\n[MIT](https://github.com/jimeh/envctl/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimeh%2Fenvctl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjimeh%2Fenvctl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimeh%2Fenvctl/lists"}