Versions in this module Expand all Collapse all v1 v1.1.0 Apr 18, 2026 v1.0.0 Apr 18, 2026 Changes in this version + var DefaultValidationRegexPattern = regexp.MustCompile("^.*$") + type QuestionOptions struct + DefaultValue string + DefaultValueSet bool + IsPassword bool + Options []string + Question string + Sort bool + ValidationFunc func(value string) error + ValidationMessage string + ValidationRegexPattern string + type Survey interface + Question func(params *QuestionOptions) (string, error) + func NewSurvey() Survey