MCPcopy
hub / github.com/PatchMon/PatchMon / getEnv

Function getEnv

server-source-code/internal/config/config.go:327–332  ·  view source on GitHub ↗
(key, defaultVal string)

Source from the content-addressed store, hash-verified

325}
326
327func getEnv(key, defaultVal string) string {
328 if v := os.Getenv(key); v != "" {
329 return v
330 }
331 return defaultVal
332}
333
334// getEnvEnv returns APP_ENV if set, else NODE_ENV (for backward compatibility), else "production".
335func getEnvEnv() string {

Callers 2

LoadFunction · 0.85
getEnvEnvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected