super-graph/core/utils.go

14 lines
194 B
Go
Raw Normal View History

2020-04-13 02:35:31 +02:00
package core
import "hash/maphash"
2020-04-13 02:35:31 +02:00
// nolint: errcheck
func mkkey(h *maphash.Hash, k1 string, k2 string) uint64 {
2020-04-13 02:35:31 +02:00
h.WriteString(k1)
h.WriteString(k2)
v := h.Sum64()
h.Reset()
return v
}