Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CtrlCReader ¶
type CtrlCReader struct {
// contains filtered or unexported fields
}
CtrlCReader implements a simple Reader/Closer that returns Ctrl-C and EOF on Read() after it has been closed, and nothing before it.
func NewCtrlCReader ¶
func NewCtrlCReader(ctx context.Context) *CtrlCReader
NewCtrlCReader returns a new CtrlCReader instance
func (*CtrlCReader) Close ¶
func (cc *CtrlCReader) Close() error
Close implements io.Closer. Note that we do not return an error on second close, not do we wait for the close to have any effect.
Click to show internal directories.
Click to hide internal directories.