Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SetOf ¶
type SetOf[T comparable] map[T]struct{}
SetOf is a set of IDs of type T.
func (SetOf[T]) Add ¶
func (set SetOf[T]) Add(id T)
Add adds the given id to the set. If it is already present, it takes no action.
Click to show internal directories.
Click to hide internal directories.