Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TerminalWidth ¶
func WriterCreator ¶
func WriterCreator(h Handler, w io.WriteCloser) func(int64) io.WriteCloser
Types ¶
type Bar ¶
type Bar pb.ProgressBar
func (*Bar) Reader ¶
func (bp *Bar) Reader(reader io.ReadCloser, total int64) io.ReadCloser
func (*Bar) Writer ¶
func (bp *Bar) Writer(writer io.WriteCloser, total int64) io.WriteCloser
type Discard ¶
type Discard struct{}
func (*Discard) Reader ¶
func (dp *Discard) Reader(reader io.ReadCloser, total int64) io.ReadCloser
func (*Discard) Writer ¶
func (dp *Discard) Writer(writer io.WriteCloser, total int64) io.WriteCloser
type Handler ¶
type Handler interface { Step(fmt string, args ...interface{}) Reader(reader io.ReadCloser, total int64) io.ReadCloser Writer(writer io.WriteCloser, total int64) io.WriteCloser Done() }
func NewDiscard ¶
func NewDiscard() Handler
Click to show internal directories.
Click to hide internal directories.