MCPcopy Create free account
hub / github.com/Go-Learning-Land/Go-Learning-Archive / writeFile

Function writeFile

GolangBasics/GoByExample/044Defer.go:24–28  ·  view source on GitHub ↗
(f *os.File)

Source from the content-addressed store, hash-verified

22}
23
24func writeFile(f *os.File) {
25 fmt.Println("writing")
26 fmt.Fprintln(f, "data")
27
28}
29
30func closeFile(f *os.File) {
31 fmt.Println("closing")

Callers 1

mainFunction · 0.85

Calls 1

PrintlnMethod · 0.80

Tested by

no test coverage detected