package
Version:
v0.0.0-...-2bc59a2
Opens a new window with list of versions in this module.
Published: Oct 29, 2018
License: GPL-3.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
TotalResults holds the history of all results.
UpdateResults updates all the results in memory and returns the
required information for the user.
type Result struct {
User *quiz.User `json:",inline"`
Questions []quiz.Question `json:"questions"`
Answers []string `json:"answers"`
Percentage string `json:"percentage"`
CorrectAnswers string `json:"correct_answers"`
}
Result holds the information for each result pack.
type Results struct {
Results []Result `json:"results"`
}
Results holds the list of all results.
NewResults creates an empty Result struct.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.