vorto

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version, Build string
)

Functions

This section is empty.

Types

type Option

type Option func(*vorto)

func OptLoader

func OptLoader(l loader.Loader) Option

func OptOutput

func OptOutput(o output.Output) Option

type Vorto

type Vorto interface {
	// Init creates storage used by Vorto if it does not exist.
	Init() error

	// Load populates Vorto with existing data from storage.
	Load() (*entity.CardStack, error)

	// Run starts a practice session.
	Run(cs *entity.CardStack)

	// Save saves results of a practice.
	Save(cs *entity.CardStack) error
}

Vorto provides methods to run a practice for learning new words.

func New

func New(cfg config.Config, opts ...Option) Vorto

Jump to

Keyboard shortcuts

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