defines.go (414B)
1 package hashmap 2 3 // defaultSize is the default size for a map. 4 const defaultSize = 8 5 6 // maxFillRate is the maximum fill rate for the slice before a resize will happen. 7 const maxFillRate = 50 8 9 // support all numeric and string types and aliases of those. 10 type hashable interface { 11 ~int | ~int8 | ~int16 | ~int32 | ~int64 | ~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr | ~float32 | ~float64 | ~string 12 }