Documentation
¶
Index ¶
Constants ¶
View Source
const MaxWordStatus = 5
Variables ¶
View Source
var WordStatusMeanings = map[int]string{
1: "New: not learned",
2: "Recognized: not learned but I have seen this before",
3: "Familiar: I usually remember seeing this word and often recall its meaning, though sometimes I forget",
4: "Learned: I know this word and almost always recognize it",
5: "Known: I have mastered this word and can use it in a sentence",
}
Functions ¶
This section is empty.
Types ¶
type APIResponse ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetNonNewWords ¶
func (*Client) ImportLesson ¶
type WordDatabase ¶
type WordDatabase struct {
// contains filtered or unexported fields
}
func NewWordDatabase ¶
func NewWordDatabase(path string) *WordDatabase
func (*WordDatabase) FetchIfFresh ¶
func (wd *WordDatabase) FetchIfFresh() ([]Word, error)
func (*WordDatabase) Store ¶
func (wd *WordDatabase) Store(words []Word) error
Click to show internal directories.
Click to hide internal directories.