MCPcopy Index your code
hub / github.com/cortexlabs/cortex / mustReadJSONBytes

Function mustReadJSONBytes

dev/load.go:315–323  ·  view source on GitHub ↗
(jsonPath string)

Source from the content-addressed store, hash-verified

313}
314
315func mustReadJSONBytes(jsonPath string) []byte {
316 jsonBytes, err := files.ReadFileBytes(jsonPath)
317 if err != nil {
318 fmt.Println(err.Error())
319 os.Exit(1)
320 }
321
322 return jsonBytes
323}
324
325func mustExtractArgs() (string, string) {
326 if len(os.Args) != 3 {

Callers 1

mainFunction · 0.85

Calls 2

ReadFileBytesFunction · 0.92
ErrorMethod · 0.80

Tested by

no test coverage detected