{"id":30025003,"url":"https://github.com/metafates/ev","last_synced_at":"2025-10-30T02:07:39.339Z","repository":{"id":307718339,"uuid":"1030487092","full_name":"metafates/ev","owner":"metafates","description":"⛳ Typed environment variables for Go","archived":false,"fork":false,"pushed_at":"2025-08-01T18:19:37.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-01T20:37:12.863Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/metafates/ev","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/metafates.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":"2025-08-01T18:14:20.000Z","updated_at":"2025-08-01T18:22:23.000Z","dependencies_parsed_at":"2025-08-01T20:37:30.993Z","dependency_job_id":"86c87cf0-7b93-4f3b-96eb-f5c0378cff8d","html_url":"https://github.com/metafates/ev","commit_stats":null,"previous_names":["metafates/ev"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/metafates/ev","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metafates%2Fev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metafates%2Fev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metafates%2Fev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metafates%2Fev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metafates","download_url":"https://codeload.github.com/metafates/ev/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metafates%2Fev/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269042107,"owners_count":24349638,"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-06T02:00:09.910Z","response_time":99,"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":"2025-08-06T07:42:44.335Z","updated_at":"2025-10-16T10:22:58.314Z","avatar_url":"https://github.com/metafates.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ev\n\n\u003e E(nvironment) v(ariable)\n\nTiny Go library to create typed environment variables.\n\n```bash\ngo get github.com/metafates/ev\n```\n\n## Example\n\n```go\nconst MyEnvVar ev.Var[int] = \"MY_ENV_VAR\"\n\nconst Verbose ev.Var[bool] = \"VERBOSE\"\n\nfunc main() {\n    // assume we have the following variables set\n    os.Setenv(\"MY_ENV_VAR\", \"42\")\n    os.Setenv(\"VERBOSE\", \"true\")\n\n    if Verbose.Get() {\n        n := MyEnvVar.Get()\n\n        fmt.Println(n + n) // prints 84\n    }\n}\n```\n\nSupported types:\n\n``` go\ntype Constraint interface {\n    int | int8 | int16 | int32 | int64 | uint | uint8 | uint16 | uint32 | uint64 | uintptr | float32 | float64\n}\n```\n\nValues are parsed using `fmt.Sscanf`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetafates%2Fev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetafates%2Fev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetafates%2Fev/lists"}