Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LinkedList ¶
type LinkedList struct {
// contains filtered or unexported fields
}
LinkedList is a thread safe first in first out (FIFO) list.
func (*LinkedList) GetTail ¶
func (l *LinkedList) GetTail() interface{}
GetTail returns a copy of the value in the last item of the LinkedList.
func (*LinkedList) IsEmpty ¶
func (l *LinkedList) IsEmpty() bool
IsEmpty checks if the LinkedList is empty.
func (*LinkedList) Pop ¶
func (l *LinkedList) Pop() interface{}
Pop pops the first item from the start of the LinkedList.
func (*LinkedList) Push ¶
func (l *LinkedList) Push(value interface{})
Push pushes a new item to the end of the LinkedList.
type LinkedListItem ¶
type LinkedListItem struct { Value interface{} // contains filtered or unexported fields }
LinkedListItem wraps a value and a reference to the next LinkedListItem.
type Slice ¶
type Slice struct {
// contains filtered or unexported fields
}
Slice wraps a standard slice and a sync.RWMutex.
func (*Slice) Add ¶
func (s *Slice) Add(elements ...interface{})
Add adds the passed elements to the underlying slice.
func (*Slice) GetElement ¶
GetElement returns the element from the underlying slice at the passed index.
func (*Slice) GetElements ¶
func (s *Slice) GetElements() []interface{}
GetElements returns the underlying slice.
Click to show internal directories.
Click to hide internal directories.