Documentation ¶
Index ¶
- type List
- func (list *List) Add(v interface{}) int
- func (list *List) Clear()
- func (list *List) Get(idx int) interface{}
- func (list *List) HasNext() bool
- func (list *List) Next() interface{}
- func (list *List) Previous() interface{}
- func (list *List) Remove(index int) bool
- func (list *List) ResetIterator()
- func (list *List) Size() (total int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type List ¶
type List struct { Values []interface{} // contains filtered or unexported fields }
List Data structure representing a single instance of a list.
func (*List) Add ¶
Add Add a value to list and return the index we stored it at. If list is full, log it as a warning.
func (*List) HasNext ¶
HasNext Returns true if there is another value after the current one in the list.
func (*List) Previous ¶
func (list *List) Previous() interface{}
Previous Returns the previous value in the list.
func (*List) Remove ¶
Remove Remove a value from the specified `list`, by its index. Returns true if removed the value at index, otherwise returns false.
func (*List) ResetIterator ¶
func (list *List) ResetIterator()
ResetIterator Returns the previous value in the list.
Click to show internal directories.
Click to hide internal directories.