Registry / config / hashicorp-go-envparse

hashicorp-go-envparse

JSON →
library0.1.0gogounverified

A minimal environment variable parser that handles empty lines, comments, quotes, and JSON escape sequences.

go get github.com/hashicorp/go-envparse
INSTALL
IMPORT
SIG · HASHICORP-GO-ENVPA
H
hashicorp-go-envparse
configgov0.1.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.

envparse
github.com/hashicorp/go-envparse

Parse a .env file and print a variable.

package main import ( "fmt" "github.com/hashicorp/go-envparse" ) func main() { env, err := envparse.ParseFile(".env") if err != nil { panic(err) } fmt.Println(env["MY_VAR"]) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
24 hits · last 30 days
node
22
Resources
hashicorp-go-envparse — go get hashicorp-go-envparse · libregistry