{"id":22685839,"url":"https://github.com/hellodword/go-magic","last_synced_at":"2025-10-07T02:55:38.105Z","repository":{"id":265801480,"uuid":"790042857","full_name":"hellodword/go-magic","owner":"hellodword","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-22T12:47:31.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-12T02:57:28.438Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/hellodword.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-22T06:52:47.000Z","updated_at":"2024-04-22T12:47:35.000Z","dependencies_parsed_at":"2024-12-03T09:15:07.639Z","dependency_job_id":null,"html_url":"https://github.com/hellodword/go-magic","commit_stats":null,"previous_names":["hellodword/go-magic"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hellodword/go-magic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellodword%2Fgo-magic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellodword%2Fgo-magic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellodword%2Fgo-magic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellodword%2Fgo-magic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hellodword","download_url":"https://codeload.github.com/hellodword/go-magic/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellodword%2Fgo-magic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278712570,"owners_count":26032740,"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-10-07T02:00:06.786Z","response_time":59,"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":[],"created_at":"2024-12-09T22:17:48.569Z","updated_at":"2025-10-07T02:55:38.074Z","avatar_url":"https://github.com/hellodword.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-magic\n\n## environment variables such as GODEBUG\n\n- https://go.dev/doc/godebug [^1]\n\nGo and its packages provide a mechanism called GODEBUG (or else) to reduce the impact such changes have on Go developers using newer toolchains to compile old code, but some of them are not documented, for example the `GODEBUG=quiclogpackets=1` for `golang.org/x/net/quic`: https://github.com/golang/net/blob/f95a3b3a48597cebf9849b84a02cd240fb185b16/quic/log.go#L19\n\nI will try to use Github API and regex to find all of them.\n\n- https://github.com/search?q=org%3Agolang+%2F%28%3F-i%29os%5C.Getenv%5C%28%5B%22%60%5D%5BA-Za-z_%5Cd%5D%2B%5B%22%60%5D%5C%29%2F+language%3AGo+NOT+path%3Atest+\u0026type=code\n\nThe GitHub search only returs the first 100 results[^2] [^3], so I think I should clone and search them locally.\n\n```go\n// https://github.com/golang/go/blob/7f76c00fc5678fa782708ba8fece63750cb89d03/src/runtime/runtime1.go#L404C13-L404C32\ngogetenv(\"GODEBUG\")\n\nos.Getenv(\"GODEBUG\")\nos.Setenv(\"GODEBUG\", \"\")\n\n// https://github.com/golang/go/blob/7f76c00fc5678fa782708ba8fece63750cb89d03/src/os/exec/exec.go#L406\n// https://github.com/golang/go/blob/7f76c00fc5678fa782708ba8fece63750cb89d03/src/internal/godebugs/table.go#L19-L59\nGODEBUG=\n\nenvOr(\"GOMODCACHE\", \"\")\n\nEnvVar{Name: \"CGO_ENABLED\"\n\n// https://github.com/golang/go/blob/7f76c00fc5678fa782708ba8fece63750cb89d03/src/runtime/testdata/testprogcgo/catchpanic.go#L43\nLookupEnv(\"CGOCATCHPANIC_EARLY_HANDLER\"\n```\n\n[^1]: https://github.com/golang/go/blob/7f76c00fc5678fa782708ba8fece63750cb89d03/doc/godebug.md\n[^2]: https://github.com/orgs/community/discussions/55202\n[^3]: https://github.com/orgs/community/discussions/79052\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellodword%2Fgo-magic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhellodword%2Fgo-magic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellodword%2Fgo-magic/lists"}