MCPcopy
hub / github.com/eth0izzle/shhgit / GetHash

Function GetHash

core/util.go:43–48  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

41}
42
43func GetHash(s string) string {
44 h := sha1.New()
45 h.Write([]byte(s))
46
47 return hex.EncodeToString(h.Sum(nil))
48}
49
50func Pluralize(count int, singular string, plural string) string {
51 if count == 1 {

Callers 1

processRepositoryOrGistFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected