An open API service indexing awesome lists of open source software.

https://github.com/irevenko/spamchk

๐Ÿ”Žโš ๏ธ A tiny spam detection library
https://github.com/irevenko/spamchk

go golang golang-library golang-package library spam

Last synced: 5 months ago
JSON representation

๐Ÿ”Žโš ๏ธ A tiny spam detection library

Awesome Lists containing this project

README

          

# spamchk ๐Ÿ”Ž๐Ÿงพ

[![Go Reference](https://pkg.go.dev/badge/github.com/irevenko/spamchk.svg)](https://pkg.go.dev/github.com/irevenko/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
```go
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
```go
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](https://github.com/irevenko/what-anime-cli/issues).

# What I Learned ๐Ÿง 
- Text Processing
- How to create libraries in GoLang

# License ๐Ÿ“‘
(c) 2021 Ilya Revenko. [MIT License](https://tldrlegal.com/license/mit-license)