Documentation
¶
Index ¶
- Variables
- func AddWord(words ...string)
- func Default() *sensitive.Filter
- func DelWord(words ...string)
- func Filter(text string) string
- func FindAll(text string) []string
- func FindIn(text string) (bool, string)
- func IsInitialized() bool
- func Load(rd io.Reader) error
- func LoadNetWordDict(url string) error
- func LoadWordDict(path string) error
- func RemoveNoise(text string) string
- func Replace(text string, repl rune) string
- func Reset()
- func UpdateNoisePattern(pattern string)
- func Validate(text string) (bool, string)
- type Config
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSensitive = errors.New("发送失败: 不能包含违禁词。(failed to send: cannot contain prohibited words)")
Functions ¶
func IsInitialized ¶
func IsInitialized() bool
Types ¶
Click to show internal directories.
Click to hide internal directories.