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

Function openFile

fodcmd/main.go:27–33  ·  view source on GitHub ↗
(f string)

Source from the content-addressed store, hash-verified

25}
26
27func openFile(f string) (io.WriteCloser, error) {
28 fl, err := os.Create(f)
29 if err != nil {
30 return nil, err
31 }
32 return fl, nil
33}
34
35func load(path string) ([]string, error) {
36 f, err := os.Open(path)

Callers 1

executeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected