package hashcode
import (
+ "bytes"
+ "fmt"
"hash/crc32"
)
// v == MinInt
return 0
}
+
+// Strings hashes a list of strings to a unique hashcode.
+func Strings(strings []string) string {
+ var buf bytes.Buffer
+
+ for _, s := range strings {
+ buf.WriteString(fmt.Sprintf("%s-", s))
+ }
+
+ return fmt.Sprintf("%d", String(buf.String()))
+}