hamquestions

package
v0.0.0-...-211e0c9 Latest Latest
Warning

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

Go to latest
Published: May 2, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePool

func CreatePool(sourcePool string, level Level) (*proto.CompleteQuestionPool, *proto.AllTitles)

CreatePool creates a Ham quesitons pool from a formated txt questions pool, and a titles only proto

func NewHamQuestionsAndTitles

func NewHamQuestionsAndTitles(cached string, rawQuestionsFilename string, level Level) (*proto.CompleteQuestionPool, *proto.AllTitles, error)

NewHamQuestionsAndTitles returns a struct with all questions in one proto and the titles in another

Types

type Level

type Level byte
const (
	General Level = 'G'
	Tech    Level = 'T'
	Extra   Level = 'E'
)

Jump to

Keyboard shortcuts

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