spamchk ππ§Ύ
A tiny Go library which checks text for spam
The lib is a client for Plino - spam filtering system
It is suitable for e-mail or SMS verification but feel free to try and find out what it works good with!
Usage π₯
verify string
package main
import (
"fmt"
spam "github.com/irevenko/spamchk"
)
func main() {
checkString := spam.IsStringSpam("Congrats you've won the Tesla car!")
fmt.Println(checkString)
}
verify text file
package main
import (
"fmt"
spam "github.com/irevenko/spamchk"
)
func main() {
checkFile := spam.IsTextFileSpam("test.txt")
fmt.Println(checkFile)
}
Contributing π€
Contributions, issues and feature requests are welcome! π
Feel free to check open issues.
What I Learned π§
- Text Processing
- How to create libraries in GoLang
License π
(c) 2021 Ilya Revenko. MIT License