package
Version:
v0.12.0
Opens a new window with list of versions in this module.
Published: Apr 22, 2024
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Asker interface {
Ask(questions []*survey.Question, answers any, opts ...survey.AskOpt) error
AskOne(p survey.Prompt, response any, opts ...survey.AskOpt) error
}
Asker defines the interface for asking survey questions.
RealAsker is an implementation of SurveyAsker that uses the actual survey library.
func (r *RealAsker) Ask(questions []*survey.Question, answers any, opts ...survey.AskOpt) error
Ask asks survey questions using the actual survey library.
func (r *RealAsker) AskOne(prompt survey.Prompt, response any, opts ...survey.AskOpt) error
AskOne asks a single survey question using the actual survey library.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.