Documentation ¶
Index ¶
- Variables
- func ABCDInit(g *gocui.Gui, q *questions.Question, count string) (err error)
- func ESInit(g *gocui.Gui, u user.Answers) (err error)
- func FBInit(g *gocui.Gui, q *questions.Question, count string) (err error)
- func FileArgs(files []string) (err error)
- func FillInAnswer(g *gocui.Gui, v *gocui.View) error
- func Init(g *gocui.Gui) (err error)
- func NextUserAnswer(g *gocui.Gui, v *gocui.View) error
- func SelectAnswer(g *gocui.Gui, v *gocui.View) error
- func TFInit(g *gocui.Gui, q *questions.Question, count string) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //Questions -- Global container for questions Questions = questions.NewQuestions() //UserAnswers -- Global container for UserAnswers UserAnswers = user.Answers{} //QuestionLimit -- Limits the number of questions that are shown to the user QuestionLimit = 10 //CurrentUserAnswer -- index for user answers CurrentUserAnswer = 1 )
View Source
var ( //AnswersToBoxViews -- used to map the user selected box view to the actual answer AnswersToBoxViews = map[string]*answers.Answer{} )
Functions ¶
func FillInAnswer ¶
FillInAnswer -- Callback used for the fill in the blank answers
func Init ¶
Init -- The Init function decides which sub Init function should be called ABCDInint, TFInit or FBInit
func NextUserAnswer ¶
NextUserAnswer -- View next user answer
func SelectAnswer ¶
SelectAnswer -- Callback used to select an answer in quiz layouts that have multiple answers to select from
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.