package
Version:
v0.0.0-...-604f4fc
Opens a new window with list of versions in this module.
Published: Aug 18, 2024
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type DB struct {
Quizes []Quiz
SequenceGenerator int
}
type Question struct {
Prompt string `yaml:"prompt"`
Answer string `yaml:"anser"`
WrongAnswers []string `yaml:"wrong_answers"`
}
type Quiz struct {
ID int `yaml:"id"`
Name string `yaml:"string"`
Questions []Question `yaml:"questions"`
}
Create implements quiz.QuizRepo.
Delete implements quiz.QuizRepo.
GetAll implements quiz.QuizRepo.
GetByID implements quiz.QuizRepo.
Update implements quiz.QuizRepo.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.