Documentation ¶
Overview ¶
Package prompt prompts user for feedback.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option struct { Chosen bool // Set to true if chosen. Value string // Value used if chosen and option is "other". // contains filtered or unexported fields }
func ValidateOption ¶
func (Option) Validation ¶
type OptionType ¶
type OptionType byte
const ( TypeSelectOne OptionType = iota // Allow user to choose single option. TypeSelectMultiple // Allow user to choose multiple options. )
type Question ¶
type Question struct { Error string Prompt string Type OptionType Options []Option }
func (*Question) AnswerMultiple ¶
func (*Question) AnswerSingle ¶
Click to show internal directories.
Click to hide internal directories.