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

Function MustFloat32FromEnvOrFile

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

Source from the content-addressed store, hash-verified

243}
244
245func MustFloat32FromEnvOrFile(envVarName string, filePath string, v *Float32Validation) float32 {
246 val, err := Float32FromEnvOrFile(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
Float32FromEnvOrFileFunction · 0.85

Tested by

no test coverage detected