MCPcopy Create free account
hub / github.com/cortexlabs/cortex / MustInt32FromEnvOrFile

Function MustInt32FromEnvOrFile

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

Source from the content-addressed store, hash-verified

243}
244
245func MustInt32FromEnvOrFile(envVarName string, filePath string, v *Int32Validation) int32 {
246 val, err := Int32FromEnvOrFile(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
Int32FromEnvOrFileFunction · 0.85

Tested by

no test coverage detected