Versions in this module Expand all Collapse all v1 v1.0.0 Apr 9, 2023 Changes in this version + const I_bookname + const I_description + const I_idxfilesize + const I_wordcount + func ApplyDictsOrder(order map[string]int) + func CloseDictFiles() + func GetInfoList() []common.Info + func Init(directoryList []string, order map[string]int) + func LookupHTML(query string, conf *config.Config, dictsOrder map[string]int) []common.QueryResult + func Reorder(order map[string]int) + type DicListSorter struct + List []*Dictionary + Order map[string]int + func (s DicListSorter) Len() int + func (s DicListSorter) Less(i, j int) bool + func (s DicListSorter) Swap(i, j int) + type Dict struct + func ReadDict(filename string, info *Info) (*Dict, error) + func (d *Dict) Close() + func (d *Dict) GetSequence(offset uint64, size uint64) []byte + func (d *Dict) Open() error + type Dictionary struct + func NewDictionary(path string, name string) (*Dictionary, error) + func Open(dirPathList []string, order map[string]int) ([]*Dictionary, error) + func (d *Dictionary) DictName() string + func (d *Dictionary) EntryCount() uint64 + func (d *Dictionary) ResourceDir() string + func (d *Dictionary) ResourceURL() string + func (d *Dictionary) Search(query string) []*SearchResult + type Idx struct + func NewIdx(entryCount int) *Idx + func ReadIndex(filename string, synPath string, info *Info) (*Idx, error) + func (idx *Idx) Add(term string, offset uint64, size uint64) int + type IdxEntry struct + Offset uint64 + Size uint64 + Terms []string + type Info struct + Disabled bool + Is64 bool + Options map[string]string + Version string + func ReadInfo(filename string) (info *Info, err error) + func (info Info) Description() string + func (info Info) DictName() string + func (info Info) EntryCount() (int, error) + func (info Info) IndexFileSize() uint64 + func (info Info) MaxIdxBytes() int + type QueryResultImp struct + func (r *QueryResultImp) DefinitionsHTML() []string + func (r *QueryResultImp) DictName() string + func (r *QueryResultImp) ResourceDir() string + func (r *QueryResultImp) Score() uint8 + func (r *QueryResultImp) Terms() []string + type SearchResult struct + type SearchResultItem struct + Data []byte + Type rune + type WordPrefixMap map[rune]map[int]bool + func (wpm WordPrefixMap) Add(term string, termIndex int)