MCPcopy Create free account
hub / github.com/PostHog/duckgres / Env

Function Env

configloader/load.go:28–33  ·  view source on GitHub ↗

Env returns the value of the named environment variable, falling back to defaultVal when unset or empty. Shared by every duckgres binary so the override semantics are identical.

(key, defaultVal string)

Source from the content-addressed store, hash-verified

26// defaultVal when unset or empty. Shared by every duckgres binary so the
27// override semantics are identical.
28func Env(key, defaultVal string) string {
29 if v := os.Getenv(key); v != "" {
30 return v
31 }
32 return defaultVal
33}

Callers 2

mainFunction · 0.92
mainFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected