MCPcopy
hub / github.com/freedomofdevelopers/fod / execute

Function execute

fodcmd/main.go:50–60  ·  view source on GitHub ↗
(p string, fn func(io.Writer, ...string) error, domains ...string)

Source from the content-addressed store, hash-verified

48}
49
50func execute(p string, fn func(io.Writer, ...string) error, domains ...string) error {
51 if p != "" {
52 fl, err := openFile(p)
53 check(err)
54 defer fl.Close()
55
56 return fn(fl, domains...)
57 }
58
59 return nil
60}
61
62func main() {
63 flag.Parse()

Callers 1

mainFunction · 0.85

Calls 2

openFileFunction · 0.85
checkFunction · 0.85

Tested by

no test coverage detected