Documentation
¶
Index ¶
Constants ¶
View Source
const ( I_bookname = "bookname" I_wordcount = "wordcount" I_description = "description" I_idxfilesize = "idxfilesize" )
Variables ¶
View Source
var ErrorHandler = func(err error) { log.Println(err) }
Functions ¶
func NewDictionary ¶
NewDictionary returns a new Dictionary path - path to dictionary files name - name of dictionary to parse
Types ¶
type Dict ¶
type Dict struct {
// contains filtered or unexported fields
}
Dict implements in-memory dictionary
func (*Dict) GetSequence ¶
GetSequence returns data at the given offset
type Idx ¶
type Idx struct {
// contains filtered or unexported fields
}
Idx implements an in-memory index for a dictionary
type Info ¶
type Info struct { Options map[string]string Version string Is64 bool // contains filtered or unexported fields }
Info contains dictionary options
func (Info) Description ¶
func (Info) EntryCount ¶
EntryCount returns number of words in the dictionary
func (Info) IndexFileSize ¶
func (Info) MaxIdxBytes ¶
type WordPrefixMap ¶
func (WordPrefixMap) Add ¶
func (wpm WordPrefixMap) Add(term string, termIndex int)
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
cmd
|
|
Package dictzip provides a reader for files in the random access `dictzip` format.
|
Package dictzip provides a reader for files in the random access `dictzip` format. |
Native (and fast) implementation of Austin Appleby's MurmurHash3.
|
Native (and fast) implementation of Austin Appleby's MurmurHash3. |
Click to show internal directories.
Click to hide internal directories.