Documentation ¶
Index ¶
- type Profane
- func (p *Profane) Add(words ...string)
- func (p *Profane) Has(word string) bool
- func (p *Profane) Match(word string) bool
- func (p *Profane) Regexp() *regexp.Regexp
- func (p *Profane) Remove(words ...string)
- func (p *Profane) ReplaceCustom(s, t string) string
- func (p *Profane) ReplaceGarbled(s string) string
- func (p *Profane) ReplaceStars(s string) string
- func (p *Profane) ReplaceVowels(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Profane ¶
type Profane struct {
// contains filtered or unexported fields
}
func (*Profane) ReplaceCustom ¶
ReplaceCustom replaces the profane word with the custom string.
func (*Profane) ReplaceGarbled ¶
ReplaceGarbled replaces profane words with $@!#%.
func (*Profane) ReplaceStars ¶
ReplaceStars replaces profane words with '*' up to the word's length.
func (*Profane) ReplaceVowels ¶
ReplaceVowels replaces the vowels in the profane word with '*'.
Click to show internal directories.
Click to hide internal directories.