quiz

package
v0.0.0-...-f3d6532 Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Quiz

type Quiz struct {
	// contains filtered or unexported fields
}

func New

func New(problems []problem.Problem) Quiz

New creates a new quiz from the supplied slice of problems

func (Quiz) PrintResults

func (q Quiz) PrintResults(w io.Writer)

PrintResults outputs the results of the quiz

func (*Quiz) Run

func (q *Quiz) Run(w io.Writer, r io.Reader)

Run runs the quiz for all the problems keeping track of correct answers

Jump to

Keyboard shortcuts

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