Documentation ¶
Overview ¶
Package sliceiterator - builds an iterator from a slice to allow peaking for the next value.
Index ¶
- type Iterator
- func (a *Iterator) ExistsNext() bool
- func (a *Iterator) Index() int
- func (a *Iterator) IsLast() bool
- func (a *Iterator) Next() bool
- func (a *Iterator) PeekNextValue() (string, bool)
- func (a *Iterator) Remaining() []string
- func (a *Iterator) Reset()
- func (a *Iterator) Size() int
- func (a *Iterator) Value() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Iterator ¶
type Iterator struct {
// contains filtered or unexported fields
}
Iterator - iterator data
func (*Iterator) ExistsNext ¶
ExistsNext - tells if there is more data to be read.
func (*Iterator) Next ¶
Next - moves the index forward and returns a bool to indicate if there is another value.
func (*Iterator) PeekNextValue ¶
PeekNextValue - Returns the next value and indicates whether or not it is valid.
Click to show internal directories.
Click to hide internal directories.