MCPcopy Create free account
hub / github.com/HashLoad/boss / hashByte

Function hashByte

utils/hash.go:11–17  ·  view source on GitHub ↗
(contentPtr *[]byte)

Source from the content-addressed store, hash-verified

9)
10
11func hashByte(contentPtr *[]byte) string {
12 contents := *contentPtr
13 hasher := md5.New()
14 hasher.Write(contents)
15 return hex.EncodeToString(hasher.Sum(nil))
16
17}
18
19func HashDir(dir string) string {
20 var err error

Callers 1

HashDirFunction · 0.85

Calls 2

NewMethod · 0.80
WriteMethod · 0.80

Tested by

no test coverage detected