dict_ecdict

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrepareDBFile

func PrepareDBFile(dbfilename string) error

Types

type DictEcdict

type DictEcdict struct {
	// contains filtered or unexported fields
}

func NewDictEcdit

func NewDictEcdit(params map[string]interface{}) (*DictEcdict, error)

func (*DictEcdict) Search

func (d *DictEcdict) Search(word string) (*entity.WordItem, error)

type Word

type Word struct {
	gorm.Model
	Id          int64  `gorm:"column:id"`
	Word        string `gorm:"column:word"`
	ShortWorld  string `gorm:"column:sw"`
	Phonetic    string
	Definition  string
	Translation string
	Pos         string
	Collins     string
	Oxford      string
	Tag         string
	Bnc         string
	Frq         string
	Exchange    string
	Detail      string
	Audio       string
}

func (Word) TableName

func (Word) TableName() string

Jump to

Keyboard shortcuts

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