MCPcopy Create free account
hub / github.com/coder/envbox / Environ

Function Environ

xunix/env.go:17–25  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

15}
16
17func 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
27type Env struct {
28 Name string

Callers 3

runDockerCVMFunction · 0.92
defaultContainerEnvsFunction · 0.92
GPUEnvsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected