Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/mmcgrana/gobyexample
/ writeFile
Function
writeFile
examples/defer/defer.go:39–42 ·
view source on GitHub ↗
(f *os.File)
Source
from the content-addressed store, hash-verified
37
}
38
39
func
writeFile(f *os.File) {
40
fmt.Println(
"writing"
)
41
fmt.Fprintln(f,
"data"
)
42
}
43
44
func
closeFile(f *os.File) {
45
fmt.Println(
"closing"
)
Callers
1
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected