mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-22 19:56:39 +00:00
bcb80d3ff4
* [chore] bump gruf/go-store to v2 * no more boobs
13 lines
414 B
Go
13 lines
414 B
Go
package hashmap
|
|
|
|
// defaultSize is the default size for a map.
|
|
const defaultSize = 8
|
|
|
|
// maxFillRate is the maximum fill rate for the slice before a resize will happen.
|
|
const maxFillRate = 50
|
|
|
|
// support all numeric and string types and aliases of those.
|
|
type hashable interface {
|
|
~int | ~int8 | ~int16 | ~int32 | ~int64 | ~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr | ~float32 | ~float64 | ~string
|
|
}
|