Documentation
¶
Index ¶
- func Choose(prompt string, options []string) (int, error)
- func Confirm(prompt string) (bool, error)
- func ReadLine(prompt string) (string, error)
- func ReadPassword(prompt string) (string, error)
- type Form
- func (f *Form) Bool(key string) bool
- func (f *Form) Choose(key string, prompt string, options []string) *Form
- func (f *Form) Confirm(key string, prompt string) *Form
- func (f *Form) Default(key string, value string) *Form
- func (f *Form) Run() error
- func (f *Form) String(key string) string
- func (f *Form) Text(key string, prompt string) *Form
- func (f *Form) Validate(key string, validator func(string) error) *Form
- type FormField
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadPassword ¶ added in v0.15.0
Types ¶
Click to show internal directories.
Click to hide internal directories.