copy

package
v3.1.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2019 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiWriter

type MultiWriter struct {
	// contains filtered or unexported fields
}

MultiWriter creates a writer that duplicates its writes to all the provided writers, writers can be added / removed dynamically.

func (*MultiWriter) Add

func (mw *MultiWriter) Add(writer io.Writer)

Add adds a writer.

func (*MultiWriter) Del

func (mw *MultiWriter) Del(writer io.Writer)

Del removes a writer.

func (*MultiWriter) Write

func (mw *MultiWriter) Write(p []byte) (n int, err error)

Write implements the standard Write interface to duplicate data to all writers.

type TerminalBuffer

type TerminalBuffer struct {
	// contains filtered or unexported fields
}

TerminalBuffer captures the last line displayed on terminal.

func NewTerminalBuffer

func NewTerminalBuffer() *TerminalBuffer

NewTerminalBuffer returns an instantiated TerminalBuffer.

func (*TerminalBuffer) Line

func (b *TerminalBuffer) Line() []byte

Line returns the last terminal line.

func (*TerminalBuffer) Write

func (b *TerminalBuffer) Write(p []byte) (n int, err error)

Write implements the write interface to store last terminal line.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL