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

Function MustInt64FromEnv

pkg/lib/configreader/int64.go:229–235  ·  view source on GitHub ↗

Musts

(envVarName string, v *Int64Validation)

Source from the content-addressed store, hash-verified

227//
228
229func MustInt64FromEnv(envVarName string, v *Int64Validation) int64 {
230 val, err := Int64FromEnv(envVarName, v)
231 if err != nil {
232 exit.Panic(err)
233 }
234 return val
235}
236
237func MustInt64FromFile(filePath string, v *Int64Validation) int64 {
238 val, err := Int64FromFile(filePath, v)

Callers

nothing calls this directly

Calls 2

PanicFunction · 0.92
Int64FromEnvFunction · 0.85

Tested by

no test coverage detected