set

package
v0.2.35 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StringSet

type StringSet struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func New

func New() *StringSet

func NewFromSlice

func NewFromSlice(slice []string) *StringSet

func (*StringSet) Add

func (s *StringSet) Add(item string)

func (*StringSet) Clear

func (s *StringSet) Clear()

func (*StringSet) Difference

func (s *StringSet) Difference(other *StringSet) *StringSet

func (*StringSet) Has

func (s *StringSet) Has(item string) bool

func (*StringSet) Intersect

func (s *StringSet) Intersect(other *StringSet) *StringSet

func (*StringSet) IsEmpty

func (s *StringSet) IsEmpty() bool

func (*StringSet) Len

func (s *StringSet) Len() int

func (*StringSet) List

func (s *StringSet) List() []string

func (*StringSet) Remove

func (s *StringSet) Remove(item string)

func (*StringSet) Union

func (s *StringSet) Union(other *StringSet) *StringSet

Jump to

Keyboard shortcuts

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