Skip to content

cristalhq/junkemail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

junkemail

build-img pkg-img reportcard-img coverage-img version-img

Fast junk email detector based on https://github.com/disposable-email-domains/disposable-email-domains data set.

Features

  • Simple API.
  • Clean and tested code.
  • Optimized for speed.
  • Concurrent-safe.
  • Dependency-free.

Install

Go version 1.18+

go get github.com/cristalhq/junkemail

Example

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.

Documentation

See these docs.

License

MIT License.

About

Fast junk email detector

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Languages