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

Function orderedHash

http/codegen/openapi/v3/types.go:501–510  ·  view source on GitHub ↗
(a, b uint64, h hash.Hash64)

Source from the content-addressed store, hash-verified

499}
500
501func orderedHash(a, b uint64, h hash.Hash64) uint64 {
502 h.Reset()
503 if err := binary.Write(h, binary.LittleEndian, a); err != nil {
504 panic(err) // should not fail
505 }
506 if err := binary.Write(h, binary.LittleEndian, b); err != nil {
507 panic(err) // should not fail
508 }
509 return h.Sum64()
510}
511
512func mustGenerateType(meta expr.MetaExpr) bool {
513 if _, ok := meta["type:generate:force"]; ok {

Callers 1

hashAttributeFunction · 0.85

Calls 2

ResetMethod · 0.45
WriteMethod · 0.45

Tested by

no test coverage detected