(ctx context.Context)
| 15 | } |
| 16 | |
| 17 | func Environ(ctx context.Context) []string { |
| 18 | fn := ctx.Value(environKey{}) |
| 19 | if fn == nil { |
| 20 | return os.Environ() |
| 21 | } |
| 22 | |
| 23 | //nolint we should panic if this isn't the case. |
| 24 | return fn.(EnvironFn)() |
| 25 | } |
| 26 | |
| 27 | type Env struct { |
| 28 | Name string |
no outgoing calls
no test coverage detected