entity

package
Version: v0.0.1-0...-d0d4b74 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinType

type BinType int
const (
	New BinType = iota
	Learning
	Vocabulary
)

func (BinType) String

func (ft BinType) String() string

type Bins

type Bins map[BinType][]*Card

type Card

type Card struct {
	ID      string  `json:"id"`
	Val     string  `json:"value"`
	Def     string  `json:"defenition"`
	SortVal float32 `json:"-"`
	Reply   `json:"replies"`
}

type CardStack

type CardStack struct {
	StackType `json:"stackType"`
	Set       string `json:"set"`
	Bins      `json:"bins"`
}

type Reply

type Reply struct {
	Answers   []bool `json:"answers"`
	TimeStamp int32  `json:"ts"`
}

func (Reply) Add

func (rs Reply) Add(r bool) Reply

func (Reply) LastGoodAnsw

func (rs Reply) LastGoodAnsw() int

type StackType

type StackType int
const (
	General StackType = iota
	Esperanto
)

func (StackType) ProcessInput

func (st StackType) ProcessInput(input string) string

Jump to

Keyboard shortcuts

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