done

package
v0.0.0-...-7a09d4d Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2018 License: MIT Imports: 4 Imported by: 2

Documentation

Overview

Package done provides a single card to display when there is nothing left to study.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Card

type Card struct{}

Card is a card displaying a "no cards to study" message

func GetCard

func GetCard() *Card

GetCard returns the done card.

func (*Card) Action

func (c *Card) Action(_ context.Context, _ *int, _ time.Time, _ interface{}) (done bool, err error)

Action always returns true, to allow checking for new due cards.

func (*Card) Body

func (c *Card) Body(_ context.Context, _ int) (string, error)

Body returns the Done card body.

func (*Card) BuryRelated

func (c *Card) BuryRelated() error

BuryRelated does nothing

func (*Card) Buttons

func (c *Card) Buttons(_ int) (studyview.ButtonMap, error)

Buttons returns the list of available buttons. As there is only one face for Done cards, the face value is ignored.

func (*Card) DocID

func (c *Card) DocID() string

DocID returns a dummy document ID.

Jump to

Keyboard shortcuts

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