load_quiz

package
v0.0.0-...-fe3f325 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectMongo

func ConnectMongo()

Types

type Question

type Question struct {
	Id            int32    `bson:"id" json:"id"`
	Value         string   `bson:"value" json:"value"`
	Answers       []string `bson:"answers" json:"answers"`
	CorrectAnswer string   `bson:"correct_answer" json:"correct_answer"`
	Difficulty    string   `bson:"difficulty" json:"difficulty"`
	Topic         string   `bson:"topic" json:"topic"`
}

func LoadQuizData

func LoadQuizData(topic string, difficulty string) ([]Question, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL