Versions in this module Expand all Collapse all v1 v1.3.0 Jan 19, 2025 Changes in this version + func ExportSurvey(s *Survey, exporter Exporter) error + func SaveSurvey(survey *Survey, repo Repository) error + func WriteSurvey(s *Survey, writer io.Writer) (int, error) + type DropdownQuestion struct + Options []string + Title string + func (q *DropdownQuestion) AddOption(option string) + func (q *DropdownQuestion) SetTitle(title string) + type Exporter interface + Export func(survey *Survey) error + type GCSExporter struct + func (e *GCSExporter) Export(survey *Survey) error + type InMemoryRepository struct + func (r *InMemoryRepository) Save(survey *Survey) error + type Question interface + SetTitle func() + type QuestionWithOptions interface + AddOption func() + type Repository interface + Save func(survey *Survey) error + type S3Exporter struct + func (e *S3Exporter) Export(survey *Survey) error + type Survey struct + Questions []string + Title string + func (s *Survey) GetTitle() string + func (s *Survey) Validate() bool + type SurveyManager struct + func NewSurveyManager(store Repository) *SurveyManager + func (m *SurveyManager) Save(survey *Survey) error + type TextQuestion struct + Title string + func (q *TextQuestion) SetTitle(title string)