dam

package
v0.32.7 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2023 License: AGPL-3.0, AGPL-3.0-only Imports: 5 Imported by: 0

README

绿坝娘

敏感词,广告机过滤

暂时使用配置文件加载敏感词,后续会移动到数据库

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllPrintableChar

func AllPrintableChar(text string) bool

Types

type Dam

type Dam struct {
	// contains filtered or unexported fields
}

func New

func New(c config.AppConfig) (Dam, error)

func (Dam) CensoredWords

func (d Dam) CensoredWords(text string) bool

func (Dam) NeedReview

func (d Dam) NeedReview(text string) bool

Jump to

Keyboard shortcuts

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