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

Function MustIntFromFile

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

Source from the content-addressed store, hash-verified

235}
236
237func MustIntFromFile(filePath string, v *IntValidation) int {
238 val, err := IntFromFile(filePath, v)
239 if err != nil {
240 exit.Panic(err)
241 }
242 return val
243}
244
245func MustIntFromEnvOrFile(envVarName string, filePath string, v *IntValidation) int {
246 val, err := IntFromEnvOrFile(envVarName, filePath, v)

Callers

nothing calls this directly

Calls 2

PanicFunction · 0.92
IntFromFileFunction · 0.85

Tested by

no test coverage detected