NewSurvey creates a new survey object
()
| 34 | |
| 35 | // NewSurvey creates a new survey object |
| 36 | func NewSurvey() Survey { |
| 37 | return &survey{} |
| 38 | } |
| 39 | |
| 40 | // Question asks the user a question and returns the answer |
| 41 | func (s *survey) Question(params *QuestionOptions) (string, error) { |