packagecacheimport("hash/fnv")// zero returns the zero value for the specified type.funczero[Tany]()T{varretTreturnret}// hash computes the 64-bit FNV-1a hash of the provided data.funchash(data[]byte)uint64{hasher:=fnv.New64()if_,err:=hasher.Write(data);err!=nil{panic(err)}returnhasher.Sum64()}