Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultSize is the default size of the set DefaultSize = 100 // DefaultLoadFactor is the default load factor of the set DefaultLoadFactor = 0.75 // GrowthFactorSmall is the growth factor for small sets GrowthFactorSmall = 20 // GrowthFactorLarge is the growth factor for large sets GrowthFactorLarge = 1.2 // SmallSetSize is the size at which the set is considered small SmallSetSize = 10000 // LargeSetSize is the size at which the set is considered large LargeSetSize = 100000000 )
Variables ¶
View Source
var HashBytes = xxhash.Checksum64
HashBytes is an alias for xxhash.Checksum64.
View Source
var HashString = xxhash.ChecksumString64
HashString is an alias for xxhash.ChecksumString64.
Functions ¶
func DefaultInterpolate ¶
func EnsureDir ¶
EnsureDir checks if a directory exists at the given path. If the path exists and is a directory, it returns nil. If the path exists but is not a directory, it returns an error. If the path does not exist, it creates the directory and returns nil.
func NewHashU64 ¶
NewHashU64 returns a new instance of a Murmur3 function. The returned function is not thread safe.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.