MCPcopy Index your code
hub / github.com/google/go-github / requireEnv

Function requireEnv

example/auditlogstream/main.go:167–173  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

165}
166
167func requireEnv(name string) string {
168 val := os.Getenv(name)
169 if val == "" {
170 log.Fatalf("environment variable %v is not set", name)
171 }
172 return val
173}
174
175func requireFlag(name, val string) {
176 if val == "" {

Callers 1

parseAndInitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…