Registry / config / compose-spec-godotenv

compose-spec-godotenv

JSON →
library1.3.0gogounverified

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

go get github.com/compose-spec/godotenv
INSTALL
IMPORT
SIG · COMPOSE-SPEC-GODOT
C
compose-spec-godotenv
configgov1.3.0
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/compose-spec/godotenv

Load environment variables from a .env file.

package main import ( "fmt" "os" "github.com/compose-spec/godotenv" ) func main() { godotenv.Load() fmt.Println(os.Getenv("MY_VAR")) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
22
Amazon
1
Resources
compose-spec-godotenv — go get compose-spec-godotenv · libregistry