Documentation
¶
Overview ¶
Package js provides primitives to integrate language server with javascript environments such as browsers and Node.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChannelReader ¶
type ChannelReader struct {
// contains filtered or unexported fields
}
ChannelReader is a reader that reads from a channel of bytes.
func NewChannelReader ¶
func NewChannelReader(source <-chan []byte, cancelFn context.CancelFunc) *ChannelReader
NewChannelReader creates a new ChannelReader from a channel.
Second argument is optional function that will be called when `Close` method is called.
func (*ChannelReader) Close ¶
func (listener *ChannelReader) Close() error
Click to show internal directories.
Click to hide internal directories.