14 lines
194 B
Go
14 lines
194 B
Go
package core
|
|
|
|
import "hash/maphash"
|
|
|
|
// nolint: errcheck
|
|
func mkkey(h *maphash.Hash, k1 string, k2 string) uint64 {
|
|
h.WriteString(k1)
|
|
h.WriteString(k2)
|
|
v := h.Sum64()
|
|
h.Reset()
|
|
|
|
return v
|
|
}
|