survey

package
v0.0.0-...-17a060d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asker

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.

type RealAsker

type RealAsker struct{}

RealAsker is an implementation of SurveyAsker that uses the actual survey library.

func (*RealAsker) Ask

func (r *RealAsker) Ask(questions []*survey.Question, answers any, opts ...survey.AskOpt) error

Ask asks survey questions using the actual survey library.

func (*RealAsker) AskOne

func (r *RealAsker) AskOne(prompt survey.Prompt, response any, opts ...survey.AskOpt) error

AskOne asks a single survey question using the actual survey library.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL