views

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEdit error = errors.New("edit card")
View Source
var ErrExit error = errors.New("exit study session")
View Source
var StyleDefault tcell.Style

Functions

This section is empty.

Types

type StudySession

type StudySession struct {
	Screen    tcell.Screen
	Cards     []*models.Card
	Scheduler scheduler.Scheduler
}

func (StudySession) Run

func (ss StudySession) Run() (string, error)

Runs a study session. If err is ErrExit, the user requested to quit the study session and save changes to cards. If err is ErrEdit, the user wants to edit the card whose ID is included in the first argument.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳