Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InputLine ¶
type InputLine struct {
// contains filtered or unexported fields
}
InputLine holds current eneterd line of symbols
func NewBuffer ¶
func NewBuffer() *InputLine
NewBuffer returns new InputLine buffer with default size equal to 4 KB.
type InputReader ¶
type InputReader struct {
// contains filtered or unexported fields
}
InputReader provides ReaderCloser interface for standart input or other input source pipe.
func NewInputReader ¶
func NewInputReader(in *os.File) (*InputReader, error)
NewInputReader returns a new InputReader for *os.File pipe.
func (*InputReader) Close ¶
func (r *InputReader) Close() (err error)
Close resets terminal settings to the initial state.
func (*InputReader) Read ¶
func (r *InputReader) Read(p []byte) (n int, err error)
Read reads data into p. It returns the number of bytes read into p. The bytes are taken from at most one Read on the underlying Reader, hence n may be less than len(p). At EOF, the count will be zero and err will be io.EOF.
Click to show internal directories.
Click to hide internal directories.