Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/gobyexample-cn/gobyexample
/ copyFile
Function
copyFile
tools/generate.go:48–53 ·
view source on GitHub ↗
(src, dst string)
Source
from the content-addressed store, hash-verified
46
}
47
48
func
copyFile(src, dst string) {
49
dat, err := os.ReadFile(src)
50
check(err)
51
err = os.WriteFile(dst, dat, 0644)
52
check(err)
53
}
54
55
func
sha1Sum(s string) string {
56
h := sha1.New()
Callers
1
main
Function · 0.85
Calls
1
check
Function · 0.70
Tested by
no test coverage detected