Discover Packages
github.com/gugadev/triviago
models
package
Version:
v0.0.0-...-7184739
Opens a new window with list of versions in this module.
Published: Jan 27, 2018
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Answer struct {
ID int `json:"id"`
Text string `json:"text"`
Question Question `json:"question"`
QuestionID int `json:"question_id"`
Correct bool `json:"correct"`
}
type Category struct {
ID int `json:"id"`
Name string `json:"name"`
}
type Question struct {
ID int `json:"id"`
Text string `json:"text"`
Category Category
CategoryID int `json:"category_id"`
}
type Score struct {
ID int `json:"id"`
Question Question `json:"question"`
QuestionID int `json:"question_id"`
Hit bool `json:"hit"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.