words

package
v0.0.0-...-ceb791f Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteWord

func DeleteWord(wordData Word) error

func UpdateWord

func UpdateWord(wordData Word) error

Types

type Word

type Word struct {
	WordId      int       `json:"id"`
	Name        string    `json:"name"`
	CreatedAt   time.Time `json:"createdAt"`
	IsLearned   bool      `json:"isLearned"`
	Translation string    `json:"translation"`
}

func AddWord

func AddWord(wordData Word) (int, Word, error)

func WordIDtoWords

func WordIDtoWords(dictToWords []dictionaryToWordsRepo.DictionaryToWords) ([]Word, error)

type WordWithDictId

type WordWithDictId struct {
	Name         string `json:"name"`
	DictionaryId int    `json:"dictionaryId"`
	Translation  string `json:"translation"`
}

func (WordWithDictId) ConvertToWord

func (wordData WordWithDictId) ConvertToWord() Word

Jump to

Keyboard shortcuts

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