Fast junk email detector based on https://github.com/disposable-email-domains/disposable-email-domains data set.
- Simple API.
- Clean and tested code.
- Optimized for speed.
- Concurrent-safe.
- Dependency-free.
Go version 1.18+
go get github.com/cristalhq/junkemail
Build new token:
email := "[email protected]"
isJunk := junkemail.Check(email)
fmt.Printf("is '%s' junk? - %v", email, isJunk)
// Output: is '[email protected]' junk? - true
See examples: example_test.go.
See these docs.