Documentation
¶
Index ¶
- type Dictionary
- func (d *Dictionary) Delete(key int) error
- func (d *Dictionary) GetWord(key int) Word
- func (d *Dictionary) GetWordFromWord(word string) (Word, error)
- func (d *Dictionary) GetWords() []Word
- func (d *Dictionary) InsertWord(word string, definition string) error
- func (d *Dictionary) Update(key int, word string, definition string) error
- type Word
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dictionary ¶
type Dictionary struct {
// contains filtered or unexported fields
}
func LoadDictionary ¶
func LoadDictionary() Dictionary
func (*Dictionary) Delete ¶
func (d *Dictionary) Delete(key int) error
func (*Dictionary) GetWord ¶
func (d *Dictionary) GetWord(key int) Word
func (*Dictionary) GetWordFromWord ¶
func (d *Dictionary) GetWordFromWord(word string) (Word, error)
func (*Dictionary) GetWords ¶
func (d *Dictionary) GetWords() []Word
func (*Dictionary) InsertWord ¶
func (d *Dictionary) InsertWord(word string, definition string) error
Click to show internal directories.
Click to hide internal directories.