Documentation ¶
Index ¶
- type CardsFunc
- type Deck
- func (d *Deck) AddCards(cards ...*card.Card)
- func (d *Deck) AddPredicts(predicts ...*meta.Predict)
- func (d *Deck) CardList() []*card.Card
- func (d *Deck) Clone(o *Deck)
- func (d *Deck) Copy() *Deck
- func (d *Deck) DropTop()
- func (d *Deck) Edit(rf CardsFunc, ef CardsFunc) error
- func (d *Deck) ExecTop(input bool, now time.Time) (meta.Predict, error)
- func (d *Deck) FutureLen() int
- func (d *Deck) OutcomeList() []*meta.Outcome
- func (d *Deck) PredictList() []*meta.Predict
- func (d *Deck) RemoveDone()
- func (d *Deck) RemoveMemorize()
- func (d *Deck) RemoveReview()
- func (d *Deck) ReviewLen() int
- func (d *Deck) TopCard() *card.Card
- func (d *Deck) TopHash() *internal.Hash
- func (d *Deck) TopPredict() *meta.Predict
- func (d *Deck) Truncate(param int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deck ¶
type Deck struct {
// contains filtered or unexported fields
}
stack.review contains checksums. cardMap maps checksums to cards. predictMap maps checksums to cards.
func (*Deck) AddPredicts ¶
Add predictions only if they don't exist.
func (*Deck) OutcomeList ¶
Used to write to the outcome file.
func (*Deck) PredictList ¶
Used to write to the predict file.
func (*Deck) RemoveDone ¶
func (d *Deck) RemoveDone()
func (*Deck) RemoveMemorize ¶
func (d *Deck) RemoveMemorize()
func (*Deck) RemoveReview ¶
func (d *Deck) RemoveReview()
func (*Deck) TopPredict ¶
Click to show internal directories.
Click to hide internal directories.