Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HashSet ¶
type HashSet[T comparable] struct { sync.RWMutex // contains filtered or unexported fields }
HashSet represents a simple thread safe hash set
func Deserialize ¶
func Deserialize[T comparable](data []byte) (*HashSet[T], error)
Deserialize deserializes cbor data into a HashSet
func Diff ¶
func Diff[T comparable](first, second *HashSet[T]) *HashSet[T]
Diff returns a set containing every element from two hash sets that does not exist in both
func NewHashSet ¶
func NewHashSet[T comparable]() *HashSet[T]
NewHashSet creates a new thread safe hash set
Click to show internal directories.
Click to hide internal directories.