Popularity
3.2
Growing
Activity
0.0
Stable
61
2
8

Programming language: Go
License: MIT License
Tags: Utility     Text Processing    

gofuckyourself alternatives and similar packages

Based on the "Utility" category.
Alternatively, view gofuckyourself alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of gofuckyourself or a related project?

Add another 'Utility' Package

README

gofuckyourself

GoDoc Go Report Card cover.run

A sanitization-based swear filter for Go.

Installing

go get github.com/JoshuaDoes/gofuckyourself

Example

package main

import (
    "fmt"

    swearfilter "github.com/JoshuaDoes/gofuckyourself"
)

var message = "This is a fûçking message with shitty swear words."
var swears = []string{"fuck", "shit"}

func main() {
    filter := swearfilter.New(false, false, false, false, false, swears...)
    swearFound, swearsFound, err := filter.Check(message)
    fmt.Println("Swear found: ", swearFound)
    fmt.Println("Swears tripped: ", swearsFound)
    fmt.Println("Error: ", err)
}

Output

> go run main.go
Swear found:  true
Swears tripped:  [fuck shit]
Error:  <nil>

License

The source code for gofuckyourself is released under the MIT License. See LICENSE for more details.

Donations

All donations are appreciated and help me stay awake at night to work on this more. Even if it's not much, it helps a lot in the long run!

Donate


*Note that all licence references and agreements mentioned in the gofuckyourself README section above are relevant to that project's source code only.