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

Function MustBoolFromFile

pkg/lib/configreader/bool.go:199–205  ·  view source on GitHub ↗
(filePath string, v *BoolValidation)

Source from the content-addressed store, hash-verified

197}
198
199func MustBoolFromFile(filePath string, v *BoolValidation) bool {
200 val, err := BoolFromFile(filePath, v)
201 if err != nil {
202 exit.Panic(err)
203 }
204 return val
205}
206
207func MustBoolFromEnvOrFile(envVarName string, filePath string, v *BoolValidation) bool {
208 val, err := BoolFromEnvOrFile(envVarName, filePath, v)

Callers

nothing calls this directly

Calls 2

PanicFunction · 0.92
BoolFromFileFunction · 0.85

Tested by

no test coverage detected