MCPcopy Create free account
hub / github.com/mmcgrana/gobyexample / createFile

Function createFile

examples/defer/defer.go:30–37  ·  view source on GitHub ↗
(p string)

Source from the content-addressed store, hash-verified

28}
29
30func createFile(p string) *os.File {
31 fmt.Println("creating")
32 f, err := os.Create(p)
33 if err != nil {
34 panic(err)
35 }
36 return f
37}
38
39func writeFile(f *os.File) {
40 fmt.Println("writing")

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected