Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = module.Module{ ModuleName: "word", ModuleVersion: "1.0.0", ModuleDepends: []string{ "order", }, ModuleEnv: map[string]any{ "orm.model": []any{ &OrderWord{}, &GlobalWord{}, }, }, ModuleExport: map[string]any{}, ModulePerm: map[string]string{ "word.view": "查看词云", }, EntryPoint: entry, }
Functions ¶
This section is empty.
Types ¶
type FilterWithDict ¶
func NewWordFilter ¶
func NewWordFilter(dict map[string]any) *FilterWithDict
func (*FilterWithDict) Has ¶
func (filter *FilterWithDict) Has(str string) bool
func (*FilterWithDict) IsLegal ¶
func (filter *FilterWithDict) IsLegal(word WordJson) bool
type GlobalWord ¶
type LengthFilter ¶
type LengthFilter struct{}
func (*LengthFilter) IsLegal ¶
func (lf *LengthFilter) IsLegal(word WordJson) bool
type WordCollector ¶
type WordCollector struct {
// contains filtered or unexported fields
}
func NewWordCollectorWithSet ¶
func NewWordCollectorWithSet(wordSet []WordJson) *WordCollector
func NewWordCollectorWithStr ¶
func NewWordCollectorWithStr(str string) *WordCollector
func (*WordCollector) Filter ¶
func (wc *WordCollector) Filter(filter Filter) *WordCollector
func (*WordCollector) ToSlice ¶
func (wc *WordCollector) ToSlice() []WordJson
Click to show internal directories.
Click to hide internal directories.