game

package
v0.0.0-...-6cb3d19 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FilterIfStartLessThan = 1000
	QuestionCount         = 5
)
View Source
const (
	RandomGenMethod = "RANDOM"
	LinearGenMethod = "LINEAR"
)

Variables

This section is empty.

Functions

func GetPicksIfPresent

func GetPicksIfPresent(db *gorm.DB, today time.Time) []int

func PickByDate

func PickByDate(today time.Time, amount, upperLimit int, excluded []int) []int

func PickRandom

func PickRandom(amount, upperLimit int) []int

func SelectAQuiz

func SelectAQuiz(state *config.AppState)

Types

This section is empty.

Jump to

Keyboard shortcuts

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