Documentation ¶ Index ¶ func ApplyOptions[T any](t *T, opts ...Option[T]) type Hasher func GetHasher[Key cmp.Ordered]() Hasher[Key] type Option type OptionFunc Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ApplyOptions ¶ func ApplyOptions[T any](t *T, opts ...Option[T]) Types ¶ type Hasher ¶ type Hasher[Key cmp.Ordered] func(Key) uintptr func GetHasher ¶ func GetHasher[Key cmp.Ordered]() Hasher[Key] setDefaultHasher sets the default hasher depending on the key type. Inlines hashing as anonymous functions for performance improvements, other options like returning an anonymous functions from another function turned out to not be as performant. type Option ¶ type Option[T any] interface { // contains filtered or unexported methods } type OptionFunc ¶ type OptionFunc[T any] func(*T) Source Files ¶ View all Source files fn.go hash.go Click to show internal directories. Click to hide internal directories.