Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Iterator ¶
type Iterator interface { Next() interface{} HasNext() bool }
Iterator is a simple iterator interface.
type PeekableIterator ¶
type PeekableIterator struct { Iter Iterator // contains filtered or unexported fields }
PeekableIterator wraps an iterator and provides the ability to peek.
func (*PeekableIterator) HasNext ¶
func (p *PeekableIterator) HasNext() bool
HasNext returns true if there is more to read from the iterator and false otherwise.
func (*PeekableIterator) Next ¶
func (p *PeekableIterator) Next() interface{}
Next returns the next element and advances the iterator.
func (*PeekableIterator) Peek ¶
func (p *PeekableIterator) Peek() interface{}
Peek returns the next element without moving the iterator.
Click to show internal directories.
Click to hide internal directories.