MCPcopy Index your code
hub / github.com/gobyexample-cn/gobyexample / sha1Sum

Function sha1Sum

tools/generate.go:55–60  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

53}
54
55func sha1Sum(s string) string {
56 h := sha1.New()
57 h.Write([]byte(s))
58 b := h.Sum(nil)
59 return fmt.Sprintf("%x", b)
60}
61
62func mustReadFile(path string) string {
63 bytes, err := os.ReadFile(path)

Callers 1

parseExamplesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected