wordsfilter

package
v0.0.0-...-3b8fdc3 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Wf *wordsfilter.WordsFilter
)

Functions

func ContentFilter

func ContentFilter(text string) bool

ContentFilter 需要过滤的地方,调用此方法,将要过滤的内容传递进去即可

func SetWordsFilter

func SetWordsFilter(filepath string)

SetWordsFilter 项目启动的时候,通过此方法将敏感词库加载进去

Types

This section is empty.

Jump to

Keyboard shortcuts

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