Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SignedNumeric ¶
type Unique ¶
type Unique interface { Comparable UniqueKey[int64] }
Unique specifies an abstract key with an ability to provide hash. Comparable interface can be issued to mitigate potential collisions, e.g. in hashmaps or other implementations.
type UniqueKey ¶ added in v1.17.9
type UniqueKey[T comparable] interface { Key() T // Key should return a unique item key. It can be a hash or just an index. }
UniqueKey specifies an abstract key with an ability to provide hash.
Click to show internal directories.
Click to hide internal directories.