Versions in this module Expand all Collapse all v0 v0.1.11 Oct 3, 2023 v0.1.10 Oct 2, 2023 Changes in this version + var ErrInvalidArgument = errors.New("invalid argument") + var ErrNoSuchElement = errors.New("element does not exist") + type DoublyLinkedList struct + func NewDoublyLinkedList() *DoublyLinkedList + func (list *DoublyLinkedList) Add(value interface{}) *DoublyLinkedListEntry + func (list *DoublyLinkedList) AddEntry(entry *DoublyLinkedListEntry) + func (list *DoublyLinkedList) AddFirst(value interface{}) *DoublyLinkedListEntry + func (list *DoublyLinkedList) AddFirstEntry(entry *DoublyLinkedListEntry) + func (list *DoublyLinkedList) AddLast(value interface{}) *DoublyLinkedListEntry + func (list *DoublyLinkedList) AddLastEntry(entry *DoublyLinkedListEntry) + func (list *DoublyLinkedList) Clear() + func (list *DoublyLinkedList) GetFirst() (interface{}, error) + func (list *DoublyLinkedList) GetFirstEntry() (*DoublyLinkedListEntry, error) + func (list *DoublyLinkedList) GetLast() (interface{}, error) + func (list *DoublyLinkedList) GetLastEntry() (*DoublyLinkedListEntry, error) + func (list *DoublyLinkedList) GetSize() int + func (list *DoublyLinkedList) RemoveEntry(entry *DoublyLinkedListEntry) error + func (list *DoublyLinkedList) RemoveFirst() (interface{}, error) + func (list *DoublyLinkedList) RemoveFirstEntry() (*DoublyLinkedListEntry, error) + func (list *DoublyLinkedList) RemoveLast() (interface{}, error) + func (list *DoublyLinkedList) RemoveLastEntry() (*DoublyLinkedListEntry, error) + type DoublyLinkedListEntry struct + Next *DoublyLinkedListEntry + Prev *DoublyLinkedListEntry + Value interface{} + func (entry *DoublyLinkedListEntry) GetNext() *DoublyLinkedListEntry + func (entry *DoublyLinkedListEntry) GetPrev() *DoublyLinkedListEntry + func (entry *DoublyLinkedListEntry) GetValue() interface{} + func (entry *DoublyLinkedListEntry) SetNext(next *DoublyLinkedListEntry) + func (entry *DoublyLinkedListEntry) SetPrev(prev *DoublyLinkedListEntry) + func (entry *DoublyLinkedListEntry) SetValue(value interface{}) + type SyncDoublyLinkedList struct + Unsafe DoublyLinkedList + func NewSyncDoublyLinkedList() *SyncDoublyLinkedList + func (list *SyncDoublyLinkedList) Add(value interface{}) *DoublyLinkedListEntry + func (list *SyncDoublyLinkedList) AddEntry(entry *DoublyLinkedListEntry) + func (list *SyncDoublyLinkedList) AddFirst(value interface{}) *DoublyLinkedListEntry + func (list *SyncDoublyLinkedList) AddFirstEntry(entry *DoublyLinkedListEntry) + func (list *SyncDoublyLinkedList) AddLast(value interface{}) *DoublyLinkedListEntry + func (list *SyncDoublyLinkedList) AddLastEntry(entry *DoublyLinkedListEntry) + func (list *SyncDoublyLinkedList) Clear() + func (list *SyncDoublyLinkedList) GetFirst() (interface{}, error) + func (list *SyncDoublyLinkedList) GetFirstEntry() (*DoublyLinkedListEntry, error) + func (list *SyncDoublyLinkedList) GetLast() (interface{}, error) + func (list *SyncDoublyLinkedList) GetLastEntry() (*DoublyLinkedListEntry, error) + func (list *SyncDoublyLinkedList) GetSize() int + func (list *SyncDoublyLinkedList) Remove(value interface{}) error + func (list *SyncDoublyLinkedList) RemoveEntry(entry *DoublyLinkedListEntry) error + func (list *SyncDoublyLinkedList) RemoveFirst() (interface{}, error) + func (list *SyncDoublyLinkedList) RemoveFirstEntry() (*DoublyLinkedListEntry, error) + func (list *SyncDoublyLinkedList) RemoveLast() (interface{}, error) + func (list *SyncDoublyLinkedList) RemoveLastEntry() (*DoublyLinkedListEntry, error)