Skip to content

namreg/ded

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DED (Disposable Email Detector)

Build Status Go Report Card GitHub GoDoc

Go package that detects disposable emails based on the list.

Notice: DED does not check that email address is correct.

Installation

go get github.com/namreg/ded

How to use

package main

import (
	"fmt"

	"github.com/namreg/ded"
)

func main() {
	disposable, _ := ded.IsDisposableEmail("[email protected]")
	fmt.Println(disposable) // true

	disposable, _ = ded.IsDisposableEmail("[email protected]")
	fmt.Println(disposable) // false

	disposable, _ := ded.IsDisposableDomain("mail.wtf")
	fmt.Println(disposable) // true

	disposable, _ = ded.IsDisposableDomain("google.com")
	fmt.Println(disposable) // false
}