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

Function MustInt64FromEnvOrFile

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

Source from the content-addressed store, hash-verified

243}
244
245func MustInt64FromEnvOrFile(envVarName string, filePath string, v *Int64Validation) int64 {
246 val, err := Int64FromEnvOrFile(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
Int64FromEnvOrFileFunction · 0.85

Tested by

no test coverage detected