list

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConcurrentSets added in v1.3.7

type ConcurrentSets struct {
	// contains filtered or unexported fields
}

func NewConcurrentSets added in v1.3.7

func NewConcurrentSets(arr ...string) (s *ConcurrentSets)

func (*ConcurrentSets) Exists added in v1.3.7

func (r *ConcurrentSets) Exists(t string) (ok bool)

func (*ConcurrentSets) ExistsAll added in v1.3.7

func (r *ConcurrentSets) ExistsAll(t ...string) (ok bool)

func (*ConcurrentSets) ExistsAny added in v1.3.7

func (r *ConcurrentSets) ExistsAny(t ...string) (ok bool)

func (*ConcurrentSets) ForEach added in v1.3.7

func (r *ConcurrentSets) ForEach(accept func(key string))

func (*ConcurrentSets) Length added in v1.3.7

func (r *ConcurrentSets) Length() int

func (*ConcurrentSets) Put added in v1.3.7

func (r *ConcurrentSets) Put(s string)

func (*ConcurrentSets) PutAll added in v1.3.7

func (r *ConcurrentSets) PutAll(arr ...string)

func (*ConcurrentSets) Remove added in v1.3.7

func (r *ConcurrentSets) Remove(s string)

func (*ConcurrentSets) RemoveAll added in v1.3.7

func (r *ConcurrentSets) RemoveAll(arr ...string)

func (*ConcurrentSets) ToArray added in v1.3.7

func (r *ConcurrentSets) ToArray() (arr []string)

type List

type List struct {
	// contains filtered or unexported fields
}

func NewList

func NewList(slice interface{}) *List

func (*List) Contains added in v1.1.4

func (r *List) Contains(o interface{}) (ok bool)

func (*List) Find

func (r *List) Find(o interface{}) (int, bool)

func (*List) FindBy added in v1.2.5

func (r *List) FindBy(accept func(i int) bool) (j int, ok bool)

func (*List) ForEach

func (r *List) ForEach(accept func(i int))

func (*List) ForEachWithStop added in v1.2.5

func (r *List) ForEachWithStop(accept func(i int) bool)

func (*List) Len added in v1.2.5

func (r *List) Len() int

type Set added in v1.3.7

type Set interface {
	Put(s string)
	PutAll(arr ...string)
	ToArray() (arr []string)
	Exists(t string) (ok bool)
	ExistsAny(t ...string) (ok bool)
	ExistsAll(t ...string) (ok bool)
	Remove(s string)
	RemoveAll(arr ...string)
	Length() int
	ForEach(accept func(key string))
}

type Sets added in v1.3.6

type Sets map[string]struct{}

func NewSets added in v1.3.6

func NewSets(arr ...string) (s Sets)

func (Sets) Exists added in v1.3.6

func (r Sets) Exists(t string) (ok bool)

func (Sets) ExistsAll added in v1.3.6

func (r Sets) ExistsAll(t ...string) (ok bool)

func (Sets) ExistsAny added in v1.3.6

func (r Sets) ExistsAny(t ...string) (ok bool)

func (Sets) ForEach added in v1.3.7

func (r Sets) ForEach(accept func(key string))

func (Sets) Length added in v1.3.6

func (r Sets) Length() int

func (Sets) Put added in v1.3.6

func (r Sets) Put(s string)

func (Sets) PutAll added in v1.3.6

func (r Sets) PutAll(arr ...string)

func (Sets) Remove added in v1.3.6

func (r Sets) Remove(s string)

func (Sets) RemoveAll added in v1.3.6

func (r Sets) RemoveAll(arr ...string)

func (Sets) ToArray added in v1.3.6

func (r Sets) ToArray() (arr []string)

Jump to

Keyboard shortcuts

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