Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/gobyexample-cn/gobyexample
/ ensureDir
Function
ensureDir
tools/generate.go:43–46 ·
view source on GitHub ↗
(dir string)
Source
from the content-addressed store, hash-verified
41
}
42
43
func
ensureDir(dir string) {
44
err := os.MkdirAll(dir, 0755)
45
check(err)
46
}
47
48
func
copyFile(src, dst string) {
49
dat, err := os.ReadFile(src)
Callers
1
main
Function · 0.85
Calls
1
check
Function · 0.70
Tested by
no test coverage detected