set

package
v1.3.11 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: Apache-2.0 Imports: 2 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Int64Set

type Int64Set struct {
	M map[int64]struct{}
}

func NewInt64Set

func NewInt64Set() *Int64Set

func (*Int64Set) Add

func (this *Int64Set) Add(elt int64) *Int64Set

func (*Int64Set) Clear

func (this *Int64Set) Clear()

func (*Int64Set) Delete

func (this *Int64Set) Delete(elt int64)

func (*Int64Set) Exists

func (this *Int64Set) Exists(elt int64) bool

func (*Int64Set) ToSlice

func (this *Int64Set) ToSlice() []int64

type IntSet

type IntSet struct {
	M map[int]struct{}
}

func NewIntSet

func NewIntSet() *IntSet

func (*IntSet) Add

func (this *IntSet) Add(elt int) *IntSet

func (*IntSet) Clear

func (this *IntSet) Clear()

func (*IntSet) Delete

func (this *IntSet) Delete(elt int)

func (*IntSet) Exists

func (this *IntSet) Exists(elt int) bool

func (*IntSet) ToSlice

func (this *IntSet) ToSlice() []int

type SafeInt64Set

type SafeInt64Set struct {
	sync.RWMutex
	M map[int64]struct{}
}

func NewSafeInt64Set

func NewSafeInt64Set() *SafeInt64Set

func (*SafeInt64Set) Add

func (this *SafeInt64Set) Add(item int64) *SafeInt64Set

func (*SafeInt64Set) Adds

func (this *SafeInt64Set) Adds(items []int64) *SafeInt64Set

func (*SafeInt64Set) Clear

func (this *SafeInt64Set) Clear()

func (*SafeInt64Set) Contains

func (this *SafeInt64Set) Contains(item int64) bool

func (*SafeInt64Set) Size

func (this *SafeInt64Set) Size() int

func (*SafeInt64Set) Slice

func (this *SafeInt64Set) Slice() []int64

func (*SafeInt64Set) String

func (this *SafeInt64Set) String() string

type SafeSet

type SafeSet struct {
	sync.RWMutex
	M map[string]bool
}

func NewSafeSet

func NewSafeSet() *SafeSet

func (*SafeSet) Add

func (this *SafeSet) Add(key string)

func (*SafeSet) Clear

func (this *SafeSet) Clear()

func (*SafeSet) Contains

func (this *SafeSet) Contains(key string) bool

func (*SafeSet) Remove

func (this *SafeSet) Remove(key string)

func (*SafeSet) Size

func (this *SafeSet) Size() int

func (*SafeSet) ToSlice

func (this *SafeSet) ToSlice() []string

type StringSet

type StringSet struct {
	M map[string]struct{}
}

func NewStringSet

func NewStringSet() *StringSet

func (*StringSet) Add

func (this *StringSet) Add(elt string) *StringSet

func (*StringSet) Clear

func (this *StringSet) Clear()

func (*StringSet) Delete

func (this *StringSet) Delete(elt string)

func (*StringSet) Exists

func (this *StringSet) Exists(elt string) bool

func (*StringSet) ToSlice

func (this *StringSet) ToSlice() []string

Jump to

Keyboard shortcuts

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