Documentation
¶
Index ¶
- type Set
- func (s Set[T]) Add(v T)
- func (s Set[T]) Contains(v T) bool
- func (s Set[T]) Len() int
- func (s Set[T]) MarshalJSON() ([]byte, error)
- func (s Set[T]) MarshalYAML() (any, error)
- func (s Set[T]) Remove(v T)
- func (s Set[T]) UnmarshalJSON(data []byte) error
- func (s Set[T]) UnmarshalYAML(data *yaml.Node) error
- func (s Set[T]) Values() []T
- type StrSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Set ¶
type Set[T comparable] map[T]empty
func New ¶
func New[T comparable](vals ...T) Set[T]
func (Set[T]) MarshalJSON ¶
func (Set[T]) MarshalYAML ¶
func (Set[T]) UnmarshalJSON ¶
func (Set[T]) UnmarshalYAML ¶
Click to show internal directories.
Click to hide internal directories.