Versions in this module Expand all Collapse all v1 v1.13.1 Jul 14, 2026 v1.13.0 Jul 10, 2026 Changes in this version + const DefaultMaxDepth + const DefaultParamBagThreshold + type Builder struct + MaxDepth int + ParamBagThreshold int + Prompter Prompter + func (b *Builder) Build(v any) error + type Prompter interface + Confirm func(label string) (bool, error) + Input func(label string, validate func(string) error) (string, error) + MultiSelect func(label string, options []string) ([]int, error) + Select func(label string, options []string) (string, error) + type ScriptedPrompter struct + Confirms map[string]bool + Inputs map[string]string + MultiSelects map[string][]int + Selects map[string]string + func (p *ScriptedPrompter) Confirm(label string) (bool, error) + func (p *ScriptedPrompter) Input(label string, validate func(string) error) (string, error) + func (p *ScriptedPrompter) MultiSelect(label string, options []string) ([]int, error) + func (p *ScriptedPrompter) Select(label string, options []string) (string, error) + type SurveyPrompter struct + func NewSurveyPrompter(io *iostreams.IOStreams) *SurveyPrompter + func (s *SurveyPrompter) Confirm(label string) (bool, error) + func (s *SurveyPrompter) Input(label string, validate func(string) error) (string, error) + func (s *SurveyPrompter) MultiSelect(label string, options []string) ([]int, error) + func (s *SurveyPrompter) Select(label string, options []string) (string, error)