Documentation
¶
Index ¶
- Constants
- func ErrorWithContext(err error) error
- func InitUI(mode int)
- func InteractiveError() error
- type DefaultUI
- func (u DefaultUI) Debug(text string)
- func (u DefaultUI) Debugf(format string, a ...interface{})
- func (u DefaultUI) Error(text string)
- func (u DefaultUI) Errorf(format string, a ...interface{})
- func (u DefaultUI) Print(text string)
- func (u DefaultUI) Printf(format string, a ...interface{})
- func (u DefaultUI) PromptInt(name, text string, result *int) error
- func (u DefaultUI) PromptString(name, text string, result *string) error
- func (u DefaultUI) Scanf(name, format string, result ...interface{}) error
- func (u DefaultUI) Scanln(name string, result *string) error
Constants ¶
View Source
const ( Standard = iota Debug Silent )
Modes
Variables ¶
This section is empty.
Functions ¶
func ErrorWithContext ¶
Provides more context for errors when possible
func InteractiveError ¶
func InteractiveError() error
Types ¶
Click to show internal directories.
Click to hide internal directories.