problem

package
v0.0.0-...-160e930 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Problem

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

Problem represents a single question answer pair

func New

func New(record []string) Problem

New creates a Problem from a provided CSV record

func (Problem) AskQuestion

func (p Problem) AskQuestion(w io.Writer)

AskQuestion prints out the question

func (Problem) CheckAnswer

func (p Problem) CheckAnswer(r io.Reader) bool

CheckAnswer checks the answer against the provided input

Jump to

Keyboard shortcuts

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