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

Function MustInt64FromFile

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

Source from the content-addressed store, hash-verified

235}
236
237func MustInt64FromFile(filePath string, v *Int64Validation) int64 {
238 val, err := Int64FromFile(filePath, v)
239 if err != nil {
240 exit.Panic(err)
241 }
242 return val
243}
244
245func MustInt64FromEnvOrFile(envVarName string, filePath string, v *Int64Validation) int64 {
246 val, err := Int64FromEnvOrFile(envVarName, filePath, v)

Callers

nothing calls this directly

Calls 2

PanicFunction · 0.92
Int64FromFileFunction · 0.85

Tested by

no test coverage detected