Documentation ¶
Overview ¶
Package util provides utility tools for CLI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTabWriter ¶
NewTabWriter creates a new Writer with a given tab writer properties.
Types ¶
type WriteCounter ¶
type WriteCounter struct { Total uint64 Bar *pb.ProgressBar }
WriteCounter counts the number of bytes written to it. It implements to the io.Writer interface and we can pass this into io.TeeReader() which will report progress on each write cycle.
Click to show internal directories.
Click to hide internal directories.