Documentation ¶
Index ¶
- type Wrapper
- func (w *Wrapper) Clear()
- func (w *Wrapper) Confirm(defaultValue bool) (bool, error)
- func (w *Wrapper) Print(args ...interface{}) (int, error)
- func (w *Wrapper) Printf(fmtString string, args ...interface{}) (int, error)
- func (w *Wrapper) Println(args ...interface{}) (int, error)
- func (w *Wrapper) ReadLine() (string, error)
- func (w *Wrapper) SyncNewlines(str string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Wrapper ¶
type Wrapper struct {
NewlineCount int
}
Wrapper is a proxy around fmt so we can manage clearing lines.
func Clearable ¶
func Clearable() *Wrapper
Clearable lets you write to the terminal and clear it afterwards.
func (*Wrapper) SyncNewlines ¶
SyncNewlines increments the internal newline counter by counting newlines in the specified string.
Click to show internal directories.
Click to hide internal directories.