Registry / config / joho-godotenv

joho-godotenv

JSON →
library1.5.1gogounverified

A Go port of the Ruby dotenv library for loading environment variables from .env files.

go get github.com/joho/godotenv
INSTALL
IMPORT
SIG · JOHO-GODOTENV
J
joho-godotenv
configgov1.5.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

godotenv
github.com/joho/godotenv

Loads environment variables from a .env file.

package main import ( "fmt" "log" "os" "github.com/joho/godotenv" ) func main() { err := godotenv.Load() if err != nil { log.Fatal("Error loading .env file") } fmt.Println(os.Getenv("MY_VAR")) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.5.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
37 hits · last 30 days
node
34
Amazon
1
Resources
joho-godotenv — go get joho-godotenv · libregistry