Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator interface { // Next prepares a new element, and returns `false` at the end of iteration. Next() bool // Value returns the value of prepared element. Value() interface{} }
Generator is an interface to be implemented by element providers.
func NewChannel ¶
func NewChannel(chn <-chan interface{}) Generator
Newchannel creates a new instance of `Generator` for channels.
Click to show internal directories.
Click to hide internal directories.