Documentation
¶
Index ¶
- Variables
- 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 FieldKind
- 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 ¶
View Source
var ErrCanceled = errors.New("input: selection canceled")
Functions ¶
func ReadPassword ¶ added in v0.15.0
Types ¶
type FieldKind ¶ added in v0.17.3
type FieldKind int
func AllFieldKind ¶ added in v0.48.3
func AllFieldKind() []FieldKind
Click to show internal directories.
Click to hide internal directories.