Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteWord ¶
func UpdateWord ¶
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 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
Click to show internal directories.
Click to hide internal directories.