github.com/fufuok/utils@v1.0.10/xhash/hash_seed_go119.go (about) 1 //go:build go1.19 2 // +build go1.19 3 4 package xhash 5 6 import ( 7 "hash/maphash" 8 ) 9 10 // hashString calculates a hash of s with the given seed. 11 func hashString(seed maphash.Seed, s string) uint64 { 12 return maphash.String(seed, s) 13 }