Documentation ¶
Index ¶
- func NewBufferInput(parent app.Input, buffer *Buffer) app.Input
- func NewBufferOutput(buffer *Buffer) app.Output
- type Broadcast
- type Buffer
- func (buffer *Buffer) Bytes() []byte
- func (buffer *Buffer) Printf(format string, a ...interface{}) (err error)
- func (buffer *Buffer) Read(p []byte) (n int, err error)
- func (buffer *Buffer) ReadAndClean() (s string)
- func (buffer *Buffer) String() string
- func (buffer *Buffer) Write(p []byte) (n int, err error)
- func (buffer *Buffer) WriteString(s string) (err error)
- type BufferInput
- type BufferOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBufferInput ¶
NewBufferInput retur new chached input
func NewBufferOutput ¶
NewBufferOutput returns a new BufferOutput.
Types ¶
type Broadcast ¶
type Broadcast struct {
// contains filtered or unexported fields
}
Broadcast is helper to brodcast call to many writers
func NewBroadcast ¶
NewBroadcast return new Broadcast instance
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
Buffer cache input data
func (*Buffer) ReadAndClean ¶
ReadAndClean return buffor and clean buffor content
func (*Buffer) WriteString ¶
WriteString write string to buffer
type BufferInput ¶
type BufferInput struct {
// contains filtered or unexported fields
}
BufferInput cache input data
func (*BufferInput) ReadLine ¶
func (input *BufferInput) ReadLine() (s string, err error)
ReadLine return next line from input stream
func (*BufferInput) ReadWord ¶
func (input *BufferInput) ReadWord() (s string, err error)
ReadWord return next word from input stream
type BufferOutput ¶
type BufferOutput struct {
// contains filtered or unexported fields
}
BufferOutput represent system output
func (*BufferOutput) Printf ¶
func (out *BufferOutput) Printf(format string, a ...interface{}) error
Printf formats according to a format specifier and writes to standard output. It returns the number of bytes written and any write error encountered.
Click to show internal directories.
Click to hide internal directories.