dictionary

package
v0.0.0-...-7de7836 Latest Latest
Warning

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

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

Documentation

Index

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

func (*Dictionary) Update

func (d *Dictionary) Update(key int, word string, definition string) error

type Word

type Word struct {
	Key        int
	Word       string
	Definition string
}

Jump to

Keyboard shortcuts

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