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

Function MustInt32FromFile

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

Source from the content-addressed store, hash-verified

235}
236
237func MustInt32FromFile(filePath string, v *Int32Validation) int32 {
238 val, err := Int32FromFile(filePath, v)
239 if err != nil {
240 exit.Panic(err)
241 }
242 return val
243}
244
245func MustInt32FromEnvOrFile(envVarName string, filePath string, v *Int32Validation) int32 {
246 val, err := Int32FromEnvOrFile(envVarName, filePath, v)

Callers

nothing calls this directly

Calls 2

PanicFunction · 0.92
Int32FromFileFunction · 0.85

Tested by

no test coverage detected