set

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: MIT Imports: 6 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Set

type Set struct {
	Set map[interface{}]bool
	// contains filtered or unexported fields
}

func NewSet

func NewSet(itemType interface{}) Set

func NewStringSet

func NewStringSet(values ...[]string) *Set

func (*Set) Add

func (set *Set) Add(item interface{}) bool

func (*Set) AddRange

func (set *Set) AddRange(items interface{})

func (*Set) Contains

func (set *Set) Contains(item interface{}) bool

func (*Set) Length

func (set *Set) Length() int

func (*Set) PrintSorted

func (set *Set) PrintSorted()

func (*Set) Slice

func (set *Set) Slice() interface{}

func (*Set) SortedStringSlice

func (set *Set) SortedStringSlice() []string

func (*Set) StringSlice

func (set *Set) StringSlice() []string

func (*Set) WriteSorted

func (set *Set) WriteSorted(writer io.Writer)

Jump to

Keyboard shortcuts

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