{"id":20492936,"url":"https://github.com/segment-boneyard/go-env","last_synced_at":"2025-09-03T22:40:31.305Z","repository":{"id":20527072,"uuid":"23806158","full_name":"segment-boneyard/go-env","owner":"segment-boneyard","description":"Go wrapper around os.Getenv() that returns an error instead of empty string","archived":false,"fork":false,"pushed_at":"2015-05-18T15:56:50.000Z","size":135,"stargazers_count":21,"open_issues_count":0,"forks_count":1,"subscribers_count":45,"default_branch":"master","last_synced_at":"2025-04-20T17:51:27.689Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/segment-boneyard.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-08T20:04:34.000Z","updated_at":"2023-08-20T11:29:55.000Z","dependencies_parsed_at":"2022-09-10T23:41:57.967Z","dependency_job_id":null,"html_url":"https://github.com/segment-boneyard/go-env","commit_stats":null,"previous_names":["segmentio/go-env"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/segment-boneyard/go-env","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segment-boneyard%2Fgo-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segment-boneyard%2Fgo-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segment-boneyard%2Fgo-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segment-boneyard%2Fgo-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/segment-boneyard","download_url":"https://codeload.github.com/segment-boneyard/go-env/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segment-boneyard%2Fgo-env/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262586290,"owners_count":23332825,"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-11-15T17:32:00.184Z","updated_at":"2025-06-29T11:32:40.701Z","avatar_url":"https://github.com/segment-boneyard.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# go-env\n\n [![Build Status](https://travis-ci.org/segmentio/go-env.svg?branch=master)](https://travis-ci.org/segmentio/go-env)\n\n Tiny wrapper around getenv() to return an error instead of an empty string when missing.\n\n## Usage\n\n#### func  Get\n\n```go\nfunc Get(name string) (string, error)\n```\nGet env var `name` or return an error if it's missing.\n\n#### func  GetDefault\n\n```go\nfunc GetDefault(name string, value string) string\n```\nGetDefault returns `value` if environment variable `name` is not present.\n\n#### func  MustGet\n\n```go\nfunc MustGet(name string) string\n```\nMustGet panics if the environment variable is missing.\n\n\n# License\n\n MIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsegment-boneyard%2Fgo-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsegment-boneyard%2Fgo-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsegment-boneyard%2Fgo-env/lists"}