Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTimeout = errors.New("Timeout")
Functions ¶
This section is empty.
Types ¶
type KeyPressReader ¶ added in v0.0.17
type KeyPressReader struct { Timeout time.Duration Once *sync.Once Raw bool BufferSize int // contains filtered or unexported fields }
func (KeyPressReader) Read ¶ added in v0.0.17
func (reader KeyPressReader) Read(p []byte) (n int, err error)
Read into the buffer
func (*KeyPressReader) Start ¶ added in v0.0.17
func (reader *KeyPressReader) Start() error
func (*KeyPressReader) Stop ¶ added in v0.0.17
func (reader *KeyPressReader) Stop() error
type ReusableReadCloser ¶
ReusableReadCloser is a reusable reader with no-op close
func NewReusableReadCloser ¶
func NewReusableReadCloser(raw interface{}) (*ReusableReadCloser, error)
NewReusableReadCloser is returned for any type of input
func (ReusableReadCloser) Close ¶
func (r ReusableReadCloser) Close() error
Close is a no-op close of ReusableReadCloser
Source Files ¶
Click to show internal directories.
Click to hide internal directories.