Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
24
func
writeFile(f *os.File) {
25
fmt.Println(
"writing"
)
26
fmt.Fprintln(f,
"data"
)
27
28
}
29
30
func
closeFile(f *os.File) {
31
fmt.Println(
"closing"
)
Callers
1
main
Function · 0.85
Calls
1
Println
Method · 0.80
Tested by
no test coverage detected