Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateChoice ¶
ValidateChoice validates the answers for the given choice type. obj: the JSON representation of the survey. answers: the list of answers to validate. qt: the type of the choice field.
func ValidateText ¶
ValidateText validates format of the answers for the given text type.
Types ¶
type QuestionChecker ¶ added in v1.1.0
QuestionChecker is an alias for a function that validates the answers for a question.
func GetQuestionChecker ¶ added in v1.1.0
func GetQuestionChecker(qt part.QuestionType) (QuestionChecker, error)
GetQuestionChecker returns the QuestionChecker for the given question type.
Click to show internal directories.
Click to hide internal directories.