Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultValidationRegexPattern = regexp.MustCompile("^.*$")
DefaultValidationRegexPattern is the default regex pattern to validate the input
Functions ¶
This section is empty.
Types ¶
type QuestionOptions ¶
type QuestionOptions struct { Question string DefaultValue string ValidationRegexPattern string ValidationMessage string ValidationFunc func(value string) error Validation func(val interface{}) error Options []string Sort bool IsPassword bool }
QuestionOptions defines a question and its options
Click to show internal directories.
Click to hide internal directories.