Documentation
¶
Index ¶
Constants ¶
View Source
const ( SuccessErrCode = 200 InnerSysErrCode = 500 BadParamErrCode = 401 UnknownErrorCode = 999 )
Variables ¶
This section is empty.
Functions ¶
func DecodeUTF16 ¶
Types ¶
type DictionaryItem ¶
type DictionaryItem struct { ID string `json:"id"` Name string `json:"name"` PathInfo *DirItem MDX *gomdict.Mdict MDDS []*gomdict.Mdict }
func NewByDirItem ¶
func NewByDirItem(dirItem *DirItem) (*DictionaryItem, error)
type KeyBlockEntry ¶
type PlainDictionaryItem ¶
type PriorityQueue ¶
type PriorityQueue struct {
// contains filtered or unexported fields
}
func NewPQ ¶
func NewPQ(word *WordItem) *PriorityQueue
func (PriorityQueue) Len ¶
func (pq PriorityQueue) Len() int
func (PriorityQueue) Less ¶
func (pq PriorityQueue) Less(i, j int) bool
func (*PriorityQueue) Pop ¶
func (pq *PriorityQueue) Pop() interface{}
func (*PriorityQueue) Push ¶
func (pq *PriorityQueue) Push(x interface{})
func (PriorityQueue) Swap ¶
func (pq PriorityQueue) Swap(i, j int)
type WordItem ¶
type WordItem struct { RawKeyWord string `json:"raw_key_word"` KeyWord string `json:"key_word"` RecordStart uint64 `json:"record_start"` }
type WrappedWordItem ¶
Click to show internal directories.
Click to hide internal directories.