Improved reflection in editform

This commit is contained in:
2019-05-27 18:08:42 +09:00
parent ecfb9eea04
commit da3c064496
6 changed files with 46 additions and 45 deletions

View File

@ -0,0 +1,14 @@
package utils
import "github.com/akyoto/hash"
// HashStringsNoOrder returns a hash of the string slice contents, ignoring order.
func HashStringsNoOrder(items []string) uint64 {
sum := uint64(0)
for _, item := range items {
sum += hash.String(item)
}
return sum
}