Documentation ¶ Index ¶ type Buffer func (b *Buffer) String() string func (b *Buffer) Write(line string) bool type UI func NewUI(writer func(string, ...interface{})) *UI func (u *UI) Write(line string) bool Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Buffer ¶ type Buffer struct { // contains filtered or unexported fields } Buffer collects all lines in buffer that can later be read and processed func (*Buffer) String ¶ func (b *Buffer) String() string String returns string from buffer func (*Buffer) Write ¶ func (b *Buffer) Write(line string) bool Write line to buffer type UI ¶ type UI struct { // contains filtered or unexported fields } UI forwards messages to the ui handler. Set writer to the function on ui handler it should call, Debug, Info, Error etc depending on the level it should log at func NewUI ¶ func NewUI(writer func(string, ...interface{})) *UI NewUI returns a new UI processor func (*UI) Write ¶ func (u *UI) Write(line string) bool Write line to ui level defined by writer func Source Files ¶ View all Source files buffer.goui.go Click to show internal directories. Click to hide internal directories.