Skip to content

A go library for censoring bad/offensive words.

License

Notifications You must be signed in to change notification settings

d4l3k/go-censor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-censor GoDoc Build Status

A go library for censoring bad/offensive words.

$ go get -u github.com/d4l3k/go-censor
c := censor.New([]string{
  "test",
  "testfoo",
  "bar",
})

c.Pattern = "!@#$"

c.CensorString("foobar test")
// "foo$!@ $!@#"

About

A go library for censoring bad/offensive words.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages