filter

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FILE_FILTER = "list.txt"
)

Variables

This section is empty.

Functions

func FilterChack

func FilterChack(data string) (result string)

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

func GetTime

func GetTime() int64

Types

type ConfigFilter

type ConfigFilter struct {
	FilterList map[rune]*FilterModel //屏蔽字树

}
var (
	ConfExample *ConfigFilter
)

func InitConfigFilter

func InitConfigFilter(configpath string) *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