words

package
v0.0.0-...-84f9aa2 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadWordFound

func BadWordFound(text *string) bool

BadWordFound determines if a censored word is found in a text.

func Censor

func Censor(text *string)

Censor removes censored words in a text

func Count

func Count(s *string) int

Count counts number of words in a string

func GetCensorRegex

func GetCensorRegex() *regexp.Regexp

GetCensorRegex returns regex of words to censor

Types

This section is empty.

Jump to

Keyboard shortcuts

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