Documentation ¶
Overview ¶
iterreader defines functions that converts an iterator to io.Reader.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BinaryMarshaler ¶
BinaryMarshaler is Reader where marshaler is encoding.BinaryMarshaler.MarshalBinary. sep is appended to every result of the invocation.
func Reader ¶
Reader returns a reader which reads values from seq marshaled by marshaler. seq must be stateful and one-shot; each time Read is called one or more values are yielded from seq. If seq is pure and reuseable, Read reads same value repeatedly. You can use iterable.Resumable or iterable.Peekable to convert a pure iterator to one-shot.
func TextMarshaler ¶
TextMarshaler is Reader where marshaler is encoding.TextMarshaler.MarshalText. sep is appended to every result of the invocation.
Types ¶
This section is empty.