Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Set ¶
type Set[T comparable] map[T]struct{}
func Merge ¶ added in v0.29.1
func Merge[T comparable](old, new Set[T]) Set[T]
Merge merges two sets, giving priority to the old set in case of conflicts. It will create a new set and leave the input sets unmodified.
func New ¶ added in v0.29.1
func New[T comparable](vals ...T) Set[T]
func (Set[T]) MarshalJSON ¶
func (Set[T]) TransformAsSlice ¶
func (s Set[T]) TransformAsSlice() []T
func (*Set[T]) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.