Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
36
func
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
TestMustLookupEnv
Function · 0.92
Calls
no outgoing calls
Tested by
1
TestMustLookupEnv
Function · 0.74