examine

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SelectPicture

func SelectPicture(w word.Word, count int) (string, []string, error)

SelectPicture 会选取输入单词的 1 张图片,并随机选择其他 count 个单词的图片各 1 张

Types

type ConflictWords added in v0.1.2

type ConflictWords struct {
	Words [][]string
}

func NewExamineConflictWords added in v0.1.2

func NewExamineConflictWords() (*ConflictWords, error)

func (*ConflictWords) Conflict added in v0.1.2

func (c *ConflictWords) Conflict(word1, word2 string) bool

Conflict 函数检查 word1 和 word2 是否冲突

type Data

type Data struct {
	Words []*wordResult `json:"words"`
}

func NewExamineData

func NewExamineData(u *unfamiliar.Unfamiliar, l *word.List) (*Data, error)

func (*Data) Correct

func (d *Data) Correct(i int)

func (*Data) LoadExamineDataFromFile

func (d *Data) LoadExamineDataFromFile() error

func (*Data) Process

func (d *Data) Process() (int, int)

func (*Data) SaveExamineDataToFile

func (d *Data) SaveExamineDataToFile() error

func (*Data) SelectWord

func (d *Data) SelectWord() (word.Word, int)

func (*Data) Wrong

func (d *Data) Wrong(i int)

Jump to

Keyboard shortcuts

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