Documentation ¶
Overview ¶
Package tickertape provides an implenetation of a concurrency-safe 'ticker tape' of current information during a running program - that is, repeatedly updating the same line with new information.
Index ¶
Constants ¶
View Source
const ( ErrNotListening errorlib.ErrorString = "tickertape is not listening" ErrAlreadyClosed errorlib.ErrorString = "cannot print to a closed tickertape" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TickerTape ¶
type TickerTape struct {
// contains filtered or unexported fields
}
TickerTape is a struct for printing progress information one at a time, on the same line.
func (*TickerTape) Print ¶
func (ticker *TickerTape) Print(args ...interface{}) bool
Print a line through the ticker like fmt.Print
func (*TickerTape) Printf ¶
func (ticker *TickerTape) Printf(format string, args ...interface{}) bool
Printf prints to a ticker
Click to show internal directories.
Click to hide internal directories.