Documentation
¶
Index ¶
- Variables
- func Ask(query string, args ...interface{}) (string, error)
- func Error(msg string)
- func Errorf(format string, args ...interface{})
- func Fprint(w io.Writer, msg string)
- func Info(msg string)
- func Infof(format string, args ...interface{})
- func Print(msg string)
- func Printf(msg string, args ...interface{})
- func Prompt(commands []PromptCmd) error
- func Warn(msg string)
- func Warnf(format string, args ...interface{})
- type ColWriter
- type Logger
- func (l *Logger) Error(msg string)
- func (l *Logger) Errorf(format string, args ...interface{})
- func (l *Logger) Fprint(w io.Writer, msg string)
- func (l *Logger) Info(msg string)
- func (l *Logger) Infof(format string, args ...interface{})
- func (l *Logger) Print(msg string)
- func (l *Logger) Warn(msg string)
- func (l *Logger) Warnf(format string, args ...interface{})
- type PromptCmd
- type Table
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPromptCommandIsNotKnown = errors.New("prompt command is not known")
View Source
var Output io.Writer = os.Stdout
Functions ¶
Types ¶
type ColWriter ¶ added in v0.2.0
type ColWriter struct {
PadLastColumn bool
SprintLineFunc func([]string, []int) string
DecorateLine func(string) string
// contains filtered or unexported fields
}
func (*ColWriter) TotalWidth ¶ added in v0.2.0
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func PrefixedLogger ¶
Click to show internal directories.
Click to hide internal directories.