Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SensitiveFilterFun ¶
Types ¶
type SensitiveFilter ¶
type SensitiveFilter struct {
// contains filtered or unexported fields
}
SensitiveFilter 敏感词过滤器
func NewSensitiveFilter ¶
func NewSensitiveFilter() *SensitiveFilter
func (*SensitiveFilter) AddKeyword ¶
func (sf *SensitiveFilter) AddKeyword(keyword string)
func (*SensitiveFilter) Filter ¶
func (sf *SensitiveFilter) Filter(text string) string
func (*SensitiveFilter) LoadFromFile ¶
func (sf *SensitiveFilter) LoadFromFile(filePath string) error
Click to show internal directories.
Click to hide internal directories.