SYMBOL INDEX (71 symbols across 5 files) FILE: goaway.go constant space (line 13) | space = " " constant firstRuneSupported (line 14) | firstRuneSupported = ' ' constant lastRuneSupported (line 15) | lastRuneSupported = '~' type ProfanityDetector (line 24) | type ProfanityDetector struct method WithSanitizeLeetSpeak (line 60) | func (g *ProfanityDetector) WithSanitizeLeetSpeak(sanitize bool) *Prof... method WithSanitizeSpecialCharacters (line 74) | func (g *ProfanityDetector) WithSanitizeSpecialCharacters(sanitize boo... method WithSanitizeAccents (line 82) | func (g *ProfanityDetector) WithSanitizeAccents(sanitize bool) *Profan... method WithSanitizeSpaces (line 88) | func (g *ProfanityDetector) WithSanitizeSpaces(sanitize bool) *Profani... method WithCustomDictionary (line 96) | func (g *ProfanityDetector) WithCustomDictionary(profanities, falsePos... method WithCustomCharacterReplacements (line 109) | func (g *ProfanityDetector) WithCustomCharacterReplacements(characterR... method WithExactWord (line 119) | func (g *ProfanityDetector) WithExactWord(exactWord bool) *ProfanityDe... method IsProfane (line 126) | func (g *ProfanityDetector) IsProfane(s string) bool { method ExtractProfanity (line 132) | func (g *ProfanityDetector) ExtractProfanity(s string) string { method indexToRune (line 173) | func (g *ProfanityDetector) indexToRune(s string, index int) int { method Censor (line 186) | func (g *ProfanityDetector) Censor(s string) string { method checkProfanity (line 199) | func (g *ProfanityDetector) checkProfanity(s *string, originalIndexes ... method removeFalsePositives (line 219) | func (g *ProfanityDetector) removeFalsePositives(s *string, originalIn... method sanitize (line 236) | func (g ProfanityDetector) sanitize(s string, rememberOriginalIndexes ... method buildCharacterReplacements (line 293) | func (g *ProfanityDetector) buildCharacterReplacements() *ProfanityDet... function NewProfanityDetector (line 39) | func NewProfanityDetector() *ProfanityDetector { function sliceContains (line 164) | func sliceContains(words []string, s string) bool { function removeAccents (line 277) | func removeAccents(s string) string { function IsProfane (line 338) | func IsProfane(s string) bool { function ExtractProfanity (line 349) | func ExtractProfanity(s string) string { function Censor (line 359) | func Censor(s string) string { FILE: goaway_bench_test.go function BenchmarkIsProfaneWhenShortStringHasNoProfanity (line 7) | func BenchmarkIsProfaneWhenShortStringHasNoProfanity(b *testing.B) { function BenchmarkIsProfaneWhenShortStringHasProfanityAtTheStart (line 14) | func BenchmarkIsProfaneWhenShortStringHasProfanityAtTheStart(b *testing.... function BenchmarkIsProfaneWhenShortStringHasProfanityInTheMiddle (line 21) | func BenchmarkIsProfaneWhenShortStringHasProfanityInTheMiddle(b *testing... function BenchmarkIsProfaneWhenShortStringHasProfanityAtTheEnd (line 28) | func BenchmarkIsProfaneWhenShortStringHasProfanityAtTheEnd(b *testing.B) { function BenchmarkIsProfaneWhenMediumStringHasNoProfanity (line 35) | func BenchmarkIsProfaneWhenMediumStringHasNoProfanity(b *testing.B) { function BenchmarkIsProfaneWhenMediumStringHasProfanityAtTheStart (line 42) | func BenchmarkIsProfaneWhenMediumStringHasProfanityAtTheStart(b *testing... function BenchmarkIsProfaneWhenMediumStringHasProfanityInTheMiddle (line 49) | func BenchmarkIsProfaneWhenMediumStringHasProfanityInTheMiddle(b *testin... function BenchmarkIsProfaneWhenMediumStringHasProfanityAtTheEnd (line 56) | func BenchmarkIsProfaneWhenMediumStringHasProfanityAtTheEnd(b *testing.B) { function BenchmarkIsProfaneWhenLongStringHasNoProfanity (line 63) | func BenchmarkIsProfaneWhenLongStringHasNoProfanity(b *testing.B) { function BenchmarkIsProfaneWhenLongStringHasProfanityAtTheStart (line 70) | func BenchmarkIsProfaneWhenLongStringHasProfanityAtTheStart(b *testing.B) { function BenchmarkIsProfaneWhenLongStringHasProfanityInTheMiddle (line 77) | func BenchmarkIsProfaneWhenLongStringHasProfanityInTheMiddle(b *testing.... function BenchmarkIsProfaneWhenLongStringHasProfanityAtTheEnd (line 84) | func BenchmarkIsProfaneWhenLongStringHasProfanityAtTheEnd(b *testing.B) { function BenchmarkProfanityDetector_WithSanitizeAccentsSetToFalseWhenLongStringHasProfanityAtTheStart (line 91) | func BenchmarkProfanityDetector_WithSanitizeAccentsSetToFalseWhenLongStr... function BenchmarkProfanityDetector_WithSanitizeAccentsSetToFalseWhenLongStringHasProfanityInTheMiddle (line 99) | func BenchmarkProfanityDetector_WithSanitizeAccentsSetToFalseWhenLongStr... function BenchmarkProfanityDetector_WithSanitizeAccentsSetToFalseWhenLongStringHasProfanityAtTheEnd (line 107) | func BenchmarkProfanityDetector_WithSanitizeAccentsSetToFalseWhenLongStr... function BenchmarkProfanityDetector_Sanitize (line 115) | func BenchmarkProfanityDetector_Sanitize(b *testing.B) { function BenchmarkCensor (line 123) | func BenchmarkCensor(b *testing.B) { function BenchmarkIsProfaneConcurrently (line 130) | func BenchmarkIsProfaneConcurrently(b *testing.B) { function BenchmarkIsProfaneConcurrently_WithAccents (line 139) | func BenchmarkIsProfaneConcurrently_WithAccents(b *testing.B) { FILE: goaway_test.go function TestExtractProfanity (line 7) | func TestExtractProfanity(t *testing.T) { function TestProfanityDetector_Censor (line 40) | func TestProfanityDetector_Censor(t *testing.T) { function TestNoDuplicatesBetweenProfanitiesAndFalseNegatives (line 175) | func TestNoDuplicatesBetweenProfanitiesAndFalseNegatives(t *testing.T) { function TestBadWords (line 185) | func TestBadWords(t *testing.T) { function TestBadWordsWithSpaces (line 216) | func TestBadWordsWithSpaces(t *testing.T) { function TestBadWordsWithAccentedLetters (line 246) | func TestBadWordsWithAccentedLetters(t *testing.T) { function TestCensorWithVerySpecialCharacters (line 276) | func TestCensorWithVerySpecialCharacters(t *testing.T) { function TestSentencesWithBadWords (line 300) | func TestSentencesWithBadWords(t *testing.T) { function TestProfanityDetector_WithCustomCharacterReplacements (line 327) | func TestProfanityDetector_WithCustomCharacterReplacements(t *testing.T) { function TestSneakyBadWords (line 393) | func TestSneakyBadWords(t *testing.T) { function TestSentencesWithSneakyBadWords (line 420) | func TestSentencesWithSneakyBadWords(t *testing.T) { function TestNormalWords (line 450) | func TestNormalWords(t *testing.T) { function TestSentencesWithNoProfanities (line 476) | func TestSentencesWithNoProfanities(t *testing.T) { function TestFalsePositives (line 504) | func TestFalsePositives(t *testing.T) { function TestExactWord (line 551) | func TestExactWord(t *testing.T) { function TestFalseNegatives (line 581) | func TestFalseNegatives(t *testing.T) { function TestSentencesWithFalsePositivesAndProfanities (line 613) | func TestSentencesWithFalsePositivesAndProfanities(t *testing.T) { function TestSentencesFromTheAdventuresOfSherlockHolmes (line 641) | func TestSentencesFromTheAdventuresOfSherlockHolmes(t *testing.T) { function TestSanitize (line 676) | func TestSanitize(t *testing.T) { function TestSanitizeWithoutSanitizingSpecialCharacters (line 684) | func TestSanitizeWithoutSanitizingSpecialCharacters(t *testing.T) { function TestSanitizeWithoutSanitizingLeetSpeak (line 692) | func TestSanitizeWithoutSanitizingLeetSpeak(t *testing.T) { function TestDefaultDriver_UTF8 (line 700) | func TestDefaultDriver_UTF8(t *testing.T) { FILE: writer.go function NewWriter (line 5) | func NewWriter(base io.Writer, detector *ProfanityDetector) *Writer { type Writer (line 12) | type Writer struct method Write (line 18) | func (w *Writer) Write(payload []byte) (int, error) { method Flush (line 38) | func (w *Writer) Flush() error { FILE: writer_test.go function TestWriter (line 10) | func TestWriter(t *testing.T) {