{"id":37094652,"url":"https://github.com/marlonmp/dotenv","last_synced_at":"2026-01-14T11:39:22.112Z","repository":{"id":57661050,"uuid":"475933065","full_name":"marlonmp/dotenv","owner":"marlonmp","description":"This is a package for loads env files","archived":false,"fork":false,"pushed_at":"2022-03-30T15:40:29.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-20T06:23:22.973Z","etag":null,"topics":["dotenv","golang"],"latest_commit_sha":null,"homepage":"","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/marlonmp.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}},"created_at":"2022-03-30T15:09:26.000Z","updated_at":"2022-03-30T15:46:07.000Z","dependencies_parsed_at":"2022-09-06T23:21:54.729Z","dependency_job_id":null,"html_url":"https://github.com/marlonmp/dotenv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marlonmp/dotenv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marlonmp%2Fdotenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marlonmp%2Fdotenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marlonmp%2Fdotenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marlonmp%2Fdotenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marlonmp","download_url":"https://codeload.github.com/marlonmp/dotenv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marlonmp%2Fdotenv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28419240,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["dotenv","golang"],"created_at":"2026-01-14T11:39:21.667Z","updated_at":"2026-01-14T11:39:22.105Z","avatar_url":"https://github.com/marlonmp.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dotenv\n\nLoads the env file in a Golang map\n\n\u003e Big O notation: O(n)\n\n## Usage\n\n```bash\n# .env\n\nNAME=SomeName wrong_value # some comment\n\nKEY=\"--- Your key here ---\" # secret key\n\n# empty variables\nEMPTY_VARIABLE=\n```\n\n```golang\n// config/env.go\nimport \"github.com/marlonmp/dotenv\"\n\nvar env map[string]string\n\n// loads the env file wherever you want\nfunc init() {\n    envPath := \"path/to/.env/file\"\n\n    dotenv.LoadFile(envPath, \u0026env)\n}\n\n// create your own `GetEnv`\nfunc Env(idx string) string {\n    return env[idx]\n}\n\n// main.go\n\nimport \"packageName/config\"\n\nfunc main() {\n    name := config.Env(\"NAME\")\n\n    println(\"Hello\", name) // Hello SomeName\n}\n\n```\n\nHappy hacking ;)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarlonmp%2Fdotenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarlonmp%2Fdotenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarlonmp%2Fdotenv/lists"}