{"id":25131936,"url":"https://github.com/robotomize/go-printenv","last_synced_at":"2025-10-23T11:30:59.159Z","repository":{"id":164021984,"uuid":"603098403","full_name":"robotomize/go-printenv","owner":"robotomize","description":"A command line utility that displays the environment variables used by a Go project","archived":false,"fork":false,"pushed_at":"2024-09-08T18:11:19.000Z","size":46,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-09-08T19:45:40.876Z","etag":null,"topics":["ast","cli","env","go","golang","golang-application","parser","tags"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robotomize.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}},"created_at":"2023-02-17T16:02:48.000Z","updated_at":"2024-09-08T18:11:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"611cfabc-ae77-4b1e-8f51-bad87bf72ee7","html_url":"https://github.com/robotomize/go-printenv","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robotomize%2Fgo-printenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robotomize%2Fgo-printenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robotomize%2Fgo-printenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robotomize%2Fgo-printenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robotomize","download_url":"https://codeload.github.com/robotomize/go-printenv/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237815442,"owners_count":19370676,"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":["ast","cli","env","go","golang","golang-application","parser","tags"],"created_at":"2025-02-08T14:16:00.515Z","updated_at":"2025-10-23T11:30:58.833Z","avatar_url":"https://github.com/robotomize.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## goprintenv\n\nA command line utility that displays the environment variables used by a Go project\n\n### Status\n\nThe project is under development, it may not find all environment variables, keep this in mind when using it.\n\n```shell\ngoprintenv -p \u003cgo-project-source\u003e\n```\n\n### Install\n\n```shell\ngo install github.com/robotomize/go-printenv/cmd/goprintenv@latest\n```\n\n### Example \n\nCurrently only processes env tags\n\n```go\ntype Nested struct {\n    Live bool `env:\"LIVE,default=true\"`\n}\n\ntype NestedStruct struct {\n\tLastName string `env:\"LAST_NAME,default=IVANOV\" json:\"last_name\" bson:\"lastName\"`\n\tTwo      Nested `env:\",prefix=TWO_\"`\n}\n\n```\n\nThe result will be the following\n\n```shell\nLAST_NAME=IVANOV\nTWO_LIVE=true\n```\n\n### @TODO\n* add ci, golangci-lint, Makefile, Dockerfile\n* Implement parsing of built-in structures\n* Should parse os.Getenv\n* Support more env tags\n* Refactor, simplify the code. Fix bugs and write unit tests","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobotomize%2Fgo-printenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobotomize%2Fgo-printenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobotomize%2Fgo-printenv/lists"}