Documentation ¶
Index ¶
Constants ¶
View Source
const ESCAPE = 27
ESCAPE is the ASCII code for escape character
Variables ¶
This section is empty.
Functions ¶
func PromptYesNo ¶
PromptYesNo asks the question and defaults to Yes
Types ¶
type Columnizer ¶
type Columnizer struct {
// contains filtered or unexported fields
}
func NewColumnizer ¶
func NewColumnizer() *Columnizer
NewColumnizer creates a new table with sensible defaults
func (*Columnizer) AddRow ¶
func (t *Columnizer) AddRow(contents ...string)
func (*Columnizer) String ¶
func (t *Columnizer) String() string
Returns string representation of the table
type StdoutWriter ¶
type StdoutWriter struct {
// contains filtered or unexported fields
}
StdoutWriter is an "in-place" writer for the StdOut
func (*StdoutWriter) Flush ¶
func (w *StdoutWriter) Flush() error
Flush writes to os.Stdout out and resets the cursor position and buffer.
Click to show internal directories.
Click to hide internal directories.