7 // String hashes a string to a unique hashcode.
9 // crc32 returns a uint32, but for our use we need
10 // and non negative integer. Here we cast to an integer
11 // and invert it if the result is negative.
12 func String(s string) int {
13 v := int(crc32.ChecksumIEEE([]byte(s)))