MCPcopy
hub / github.com/mislav/hub / readFile

Function readFile

commands/api.go:361–370  ·  view source on GitHub ↗
(file string)

Source from the content-addressed store, hash-verified

359}
360
361func readFile(file string) (content []byte) {
362 var err error
363 if file == "-" {
364 content, err = ioutil.ReadAll(os.Stdin)
365 } else {
366 content, err = ioutil.ReadFile(file)
367 }
368 utils.Check(err)
369 return
370}

Callers 1

magicValueFunction · 0.85

Calls 1

CheckFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…