MCPcopy Index your code
hub / github.com/PasarGuard/node / GetEnv

Function GetEnv

config/config.go:83–89  ·  view source on GitHub ↗
(key, fallback string)

Source from the content-addressed store, hash-verified

81}
82
83func GetEnv(key, fallback string) string {
84 value, exists := os.LookupEnv(key)
85 if !exists {
86 value = fallback
87 }
88 return value
89}
90
91func GetEnvAsBool(name string, defaultVal bool) bool {
92 valStr := GetEnv(name, "")

Callers 4

LoadFunction · 0.85
GetEnvAsBoolFunction · 0.85
GetEnvAsIntFunction · 0.85
GetEnvAsUUIDFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected