Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
func Initialize(debug bool)
func WithoutContext ¶
Types ¶
type UpdatableStdout ¶
UpdatableStdout is used to print and update text to stdout. Use this instead of fmt.Print to support updating already output text like progress percentage.
func NewUpdatableStdout ¶
func NewUpdatableStdout() *UpdatableStdout
NewUpdatableStdout creates a new UpdatableStdout instance that can be used to print and update text to stdout
func (*UpdatableStdout) Print ¶
func (p *UpdatableStdout) Print(s string)
Print outputs the specified string as-is on the current line
func (*UpdatableStdout) PrintUpdatable ¶
func (p *UpdatableStdout) PrintUpdatable(id, s string)
PrintUpdatable outputs the specified string on the current line, or updates it in place
func (*UpdatableStdout) PrintUpdatablef ¶
func (p *UpdatableStdout) PrintUpdatablef(id, format string, a ...interface{})
PrintUpdatablef formats and outputs the format string on the current line, or updates it in place
func (*UpdatableStdout) Printf ¶
func (p *UpdatableStdout) Printf(format string, a ...interface{})
Printf formats and outputs the format string on the current line
Click to show internal directories.
Click to hide internal directories.