{"id":50011,"library":"joho-godotenv","title":"GoDotEnv","description":"A Go port of the Ruby dotenv library for loading environment variables from .env files.","status":"active","version":"1.5.1","language":"go","source_language":null,"source_url":"https://github.com/joho/godotenv","tags":["env","dotenv","configuration","environment"],"install":[{"cmd":"go get github.com/joho/godotenv","lang":"bash","label":"Install github.com/joho/godotenv"}],"dependencies":[],"imports":[{"symbol":"godotenv","correct":"github.com/joho/godotenv"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"os\"\n\n\t\"github.com/joho/godotenv\"\n)\n\nfunc main() {\n\terr := godotenv.Load()\n\tif err != nil {\n\t\tlog.Fatal(\"Error loading .env file\")\n\t}\n\tfmt.Println(os.Getenv(\"MY_VAR\"))\n}","lang":"go","description":"Loads environment variables from a .env file."},"warnings":[],"env_vars":null,"search_vec":"'configur':19 'dotenv':8,18 'env':15,17 'environ':12,20 'file':16 'go':3 'godotenv':1 'librari':9 'load':11 'port':4 'rubi':7 'variabl':13","created_at":"2026-06-15T04:36:43.080856+00:00","updated_at":"2026-06-15T04:36:43.080856+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/joho/godotenv","github":"https://github.com/joho/godotenv","docs":"https://pkg.go.dev/github.com/joho/godotenv#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["config"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}