MCPcopy Create free account
hub / github.com/goadesign/goa / hashString

Function hashString

http/codegen/openapi/v3/types.go:493–499  ·  view source on GitHub ↗
(s string, h hash.Hash64)

Source from the content-addressed store, hash-verified

491}
492
493func hashString(s string, h hash.Hash64) uint64 {
494 h.Reset()
495 if _, err := h.Write([]byte(s)); err != nil {
496 panic(err) // should not fail
497 }
498 return h.Sum64()
499}
500
501func orderedHash(a, b uint64, h hash.Hash64) uint64 {
502 h.Reset()

Callers 1

hashAttributeFunction · 0.85

Calls 2

ResetMethod · 0.45
WriteMethod · 0.45

Tested by

no test coverage detected