Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Processor ¶
Processor is a function that returns a stream derived from a source stream.
func Filter ¶
Filter filters out elements from the source stream for which the filter function retruns false
func Limit ¶
Limit limits the number of streamed elements If limit <= 0 then there is no limit, it will return all elements from the source stream. Otherwise it will only return up to the first limit elements.
type Stream ¶
type Stream interface { // Next advances the stream. It must // be called once at the start to advance // to the first item in the stream. It returns // true if there is a value available // or false otherwise. It may return false in // case of an error. Error() will return // an error if this is the case and must be checked // after Next() returns false. Next() bool // Value returns the value at the current position // or nil if iteration is done. Value() interface{} // Error returns the error that occurred, if any Error() error }
Stream describes a stream of values
Click to show internal directories.
Click to hide internal directories.