Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Stream ¶
type Stream interface { // Tokens returns a channel of Tokens, that can be read from. Tokens() <-chan Token // Push pushes a token onto this stream. It will be accessible on the // channel retrieved with Tokens() eventually. Push(Token) // Close closes this stream, and also closes the channel retrieved with // Tokens(). Close() }
Stream is an interface providing methods for a usable token stream.
Click to show internal directories.
Click to hide internal directories.