plan

package
v0.0.0-...-e8bafe0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder(plan Plan) *Builder

func (*Builder) Build

func (p *Builder) Build() error

Build builds a plan

type DayPlan

type DayPlan struct {
	Date  time.Time
	Words []Word
	// contains filtered or unexported fields
}

func NewDayPlan

func NewDayPlan() *DayPlan

func (*DayPlan) Run

func (d *DayPlan) Run() (err error)

func (*DayPlan) SelectGlossary

func (d *DayPlan) SelectGlossary(glossary ...string)

func (*DayPlan) SetNumsPerDay

func (d *DayPlan) SetNumsPerDay(numsPerDay int)

type Example

type Example struct {
}

type Plan

type Plan interface {
	Run() error
}

type Target

type Target struct {
	Nums int `json:"nums"`
}

type Template

type Template struct {
}

type Word

type Word struct {
	Name          string
	Phonetic      string
	Meaning       string
	WordsGraph    string
	Roots         []string
	RootGraph     string
	MemorizeVideo string
	Examples      []Example
}

Jump to

Keyboard shortcuts

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