MCPcopy
hub / github.com/cortexlabs/cortex / MustIntFromEnvOrFile

Function MustIntFromEnvOrFile

pkg/lib/configreader/int.go:245–251  ·  view source on GitHub ↗
(envVarName string, filePath string, v *IntValidation)

Source from the content-addressed store, hash-verified

243}
244
245func MustIntFromEnvOrFile(envVarName string, filePath string, v *IntValidation) int {
246 val, err := IntFromEnvOrFile(envVarName, filePath, v)
247 if err != nil {
248 exit.Panic(err)
249 }
250 return val
251}

Callers

nothing calls this directly

Calls 2

PanicFunction · 0.92
IntFromEnvOrFileFunction · 0.85

Tested by

no test coverage detected