set

package
v0.0.0-...-043b14a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 2 Imported by: 0

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]empty

func New

func New[T comparable](vals ...T) Set[T]

func (Set[T]) Add

func (s Set[T]) Add(v T)

func (Set[T]) Contains

func (s Set[T]) Contains(v T) bool

func (Set[T]) Len

func (s Set[T]) Len() int

func (Set[T]) MarshalJSON

func (s Set[T]) MarshalJSON() ([]byte, error)

func (Set[T]) MarshalYAML

func (s Set[T]) MarshalYAML() (any, error)

func (Set[T]) Remove

func (s Set[T]) Remove(v T)

func (Set[T]) UnmarshalJSON

func (s Set[T]) UnmarshalJSON(data []byte) error

func (Set[T]) UnmarshalYAML

func (s Set[T]) UnmarshalYAML(data *yaml.Node) error

func (Set[T]) Values

func (s Set[T]) Values() []T

type StrSet

type StrSet = Set[string]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL