Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/caarlos0/env
/ newVarIsNotSetError
Function
newVarIsNotSetError
error.go:120–122 ·
view source on GitHub ↗
(key string)
Source
from the content-addressed store, hash-verified
118
}
119
120
func
newVarIsNotSetError(key string) error {
121
return
VarIsNotSetError{key}
122
}
123
124
func
(e VarIsNotSetError) Error() string {
125
return
fmt.Sprintf(`required environment variable %q is not set`, e.Key)
Callers
1
get
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected