MCPcopy
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
48func 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
55func sha1Sum(s string) string {
56 h := sha1.New()

Callers 1

mainFunction · 0.85

Calls 1

checkFunction · 0.70

Tested by

no test coverage detected