set

package
v2.0.0-...-1b98e1c Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 0 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 struct {
	// contains filtered or unexported fields
}

func New

func New() *Set

func NewFrom

func NewFrom(values []string) *Set

func (*Set) Add

func (s *Set) Add(value string)

func (*Set) AddValues

func (s *Set) AddValues(values []string)

func (*Set) Has

func (s *Set) Has(value string) bool

func (*Set) IsEmpty

func (s *Set) IsEmpty() bool

func (*Set) Iter

func (s *Set) Iter() map[string]struct{}

func (*Set) Remove

func (s *Set) Remove(value string)

Remove removes an element from the set

func (*Set) Size

func (s *Set) Size() int

func (*Set) Slice

func (s *Set) Slice() []string

func (*Set) Values

func (s *Set) Values() []string

Jump to

Keyboard shortcuts

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