Documentation ¶
Index ¶
- func NewStardict(dirItem *model.DirItem) (model.GeneralDictionary, error)
- type StarDict
- func (s *StarDict) BuildIndex() error
- func (s *StarDict) Description() *model.PlainDictionaryInfo
- func (s *StarDict) DictType() model.DictType
- func (s *StarDict) KeyList() []string
- func (s *StarDict) Locate(entry *model.KeyQueryIndex) ([]byte, error)
- func (s *StarDict) Lookup(keyword string) ([]byte, error)
- func (s *StarDict) LookupResource(keyword string) ([]byte, error)
- func (s *StarDict) Name() string
- func (s *StarDict) Search(keyword string) ([]*model.KeyQueryIndex, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStardict ¶
func NewStardict(dirItem *model.DirItem) (model.GeneralDictionary, error)
Types ¶
type StarDict ¶
type StarDict struct { DzFilePath string DictFilePath string IfoFilePath string IdxFilePath string SDict *stardict.StarDict BkTree *bktree.BKTree // contains filtered or unexported fields }
*
- StarDict support stardict file type
func (*StarDict) BuildIndex ¶
func (*StarDict) Description ¶
func (s *StarDict) Description() *model.PlainDictionaryInfo
Click to show internal directories.
Click to hide internal directories.