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

Function MustLookupEnv

xunix/env.go:36–42  ·  view source on GitHub ↗
(e string)

Source from the content-addressed store, hash-verified

34}
35
36func MustLookupEnv(e string) string {
37 env, ok := os.LookupEnv(e)
38 if !ok {
39 panic(fmt.Sprintf("%q env var not found", e))
40 }
41 return env
42}

Callers 1

TestMustLookupEnvFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestMustLookupEnvFunction · 0.74