mdict_idxer

package
v1.2.1-0...-837fef5 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MdictIdxer

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

func NewIdxer

func NewIdxer(indexFilePath string) (*MdictIdxer, error)

func (*MdictIdxer) AddRecord

func (idxer *MdictIdxer) AddRecord(record *model.MdictKeyWordIndex) error

AddRecord add mdict word record

func (*MdictIdxer) GetMeta

func (idxer *MdictIdxer) GetMeta(key string) (value string, err error)

func (*MdictIdxer) Lookup

func (idxer *MdictIdxer) Lookup(keyword string) (*model.MdictKeyWordIndex, error)

func (*MdictIdxer) Search

func (idxer *MdictIdxer) Search(keyword string) ([]*model.MdictKeyWordIndex, error)

func (*MdictIdxer) SetMeta

func (idxer *MdictIdxer) SetMeta(key, value string) error

Jump to

Keyboard shortcuts

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