concurrent

package
v0.0.0-...-2552c51 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Element

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

func (*Element) Next

func (s *Element) Next() (elem *Element)

func (*Element) Prev

func (s *Element) Prev() (elem *Element)

func (*Element) SetVal

func (s *Element) SetVal(val interface{})

func (*Element) Val

func (s *Element) Val() (val interface{})

type List

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

func ListFromSlise

func ListFromSlise(sl []interface{}) *List

func NewList

func NewList() *List

func (*List) Each

func (s *List) Each(call func(*Element) bool)

func (*List) First

func (s *List) First() (elem *Element)

func (*List) Index

func (s *List) Index(index int) (elem *Element)

func (*List) Last

func (s *List) Last() (elem *Element)

func (*List) PushBack

func (s *List) PushBack(v interface{}) (elem *Element)

func (*List) PushBackIfNotExists

func (s *List) PushBackIfNotExists(v interface{}) (elem *Element, added bool)

func (*List) PushFront

func (s *List) PushFront(v interface{}) (elem *Element)

func (*List) PushFrontIfNotExists

func (s *List) PushFrontIfNotExists(v interface{}) (elem *Element, added bool)

func (*List) Remove

func (s *List) Remove(elem *Element)

func (*List) Search

func (s *List) Search(val interface{}) *Element

func (*List) Size

func (s *List) Size() (size int)

func (*List) Slice

func (s *List) Slice() []interface{}

type Queue

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

func NewQueue

func NewQueue() *Queue

func (*Queue) Pop

func (s *Queue) Pop() (val interface{}, check bool)

func (*Queue) Push

func (s *Queue) Push(val ...interface{})

func (*Queue) Size

func (s *Queue) Size() (size int)

Jump to

Keyboard shortcuts

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