dict

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TangoDB *sql.DB

Functions

func ImportDictDB

func ImportDictDB(dictName string)

func InitDictDB

func InitDictDB()

Types

type Dict

type Dict struct {
	ID       int
	Title    string `json:"title"`
	Format   int    `json:"format"`
	Revision string `json:"revision"`
}

func GetAllDicts

func GetAllDicts() ([]Dict, error)

type Term

type Term struct {
	Expression string
	Reading    string
	Glossaries []string
	Dict       string
}

https://github.com/FooSoft/yomichan-import/blob/5fe039e5f66ccad397f97a44a9f406a5a68a9438/common.go

type dbTerm struct {
	Expression     string
	Reading        string
	DefinitionTags []string
	Rules          []string
	Score          int
	Glossary       []string
	Sequence       int
	TermTags       []string
}

func DefineWord

func DefineWord(w string) ([]Term, error)

func (*Term) UnmarshalJSON

func (t *Term) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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