MCPcopy Create free account
hub / github.com/remotemobprogramming/mob / setOptionalStringFromEnvVariable

Function setOptionalStringFromEnvVariable

configuration/configuration.go:486–492  ·  view source on GitHub ↗
(s *string, key string)

Source from the content-addressed store, hash-verified

484}
485
486func setOptionalStringFromEnvVariable(s *string, key string) {
487 value, set := os.LookupEnv(key)
488 if set {
489 *s = value
490 say.Debug("overriding " + key + "=" + *s)
491 }
492}
493
494func setBoolFromEnvVariable(s *bool, key string) {
495 value, set := os.LookupEnv(key)

Callers 1

Calls 1

DebugFunction · 0.92

Tested by

no test coverage detected