ngword

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterCheck

func FilterCheck(data string) (result string)

FilterCheck 屏蔽字操作,这个方法就是外部调用的入口方法

func InitConfigFilter

func InitConfigFilter(configpath string)

InitConfigFilter 加载词库

Types

type ConfigFilter

type ConfigFilter struct {
	FilterList map[rune]*FilterModel //屏蔽字树
}
var (
	ConfExample *ConfigFilter
)

type FilterModel

type FilterModel struct {
	NodeStr rune                  //内容
	Subli   map[rune]*FilterModel //屏蔽子集合
	IsEnd   bool                  //是否为结束
}

屏蔽字结构

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL