Documentation
¶
Index ¶
Constants ¶
View Source
const ( // FillBlank ... FillBlank = 1 // MCQ ... MCQ = 2 // MultiSelect ... MultiSelect = 3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Answers ¶
type Answers [][]int
Answers represent answer type
type Options ¶
type Options [][]string
Options represent options type
type Question ¶
type Question struct { ID int64 `json:"id"` Category string `json:"category"` SubCategory string `json:"subcategory"` Type QuestionType `json:"type"` Description string `json:"description"` Options Options `json:"options"` // e.g [["option a", "option b"], ["option c, option d"]] Answers Answers `json:"answers"` // e.g [[1][0]] Image *string `json:"image,omitempty"` }
Question ...
Click to show internal directories.
Click to hide internal directories.