Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Answer ¶
type Answer struct {
Answers []string `json:"answers"`
}
Answer contains the user's response(s) to a single question.
type Question ¶
type Question struct {
ID string `json:"id"`
Header string `json:"header,omitempty"`
Question string `json:"question"`
IsOther bool `json:"is_other,omitempty"`
IsSecret bool `json:"is_secret,omitempty"`
Options []QuestionOption `json:"options,omitempty"`
}
Question represents a single user-input prompt.
type QuestionOption ¶
type QuestionOption struct {
Label string `json:"label"`
Description string `json:"description,omitempty"`
}
QuestionOption represents a selectable choice in a user-input question.
Click to show internal directories.
Click to hide internal directories.