envVarValueSource encapsulates a ValueSource from an environment variable
| 103 | |
| 104 | // envVarValueSource encapsulates a ValueSource from an environment variable |
| 105 | type envVarValueSource struct { |
| 106 | key string |
| 107 | } |
| 108 | |
| 109 | func (e *envVarValueSource) Lookup() (string, bool) { |
| 110 | return os.LookupEnv(strings.TrimSpace(string(e.key))) |
nothing calls this directly
no outgoing calls
no test coverage detected