Go package that detects disposable emails based on the list.
Notice: DED does not check that email address is correct.
go get github.com/namreg/ded
package main
import (
"fmt"
"github.com/namreg/ded"
)
func main() {
disposable, _ := ded.IsDisposableEmail("temp@mail.wtf")
fmt.Println(disposable) // true
disposable, _ = ded.IsDisposableEmail("temp@google.com")
fmt.Println(disposable) // false
disposable, _ := ded.IsDisposableDomain("mail.wtf")
fmt.Println(disposable) // true
disposable, _ = ded.IsDisposableDomain("google.com")
fmt.Println(disposable) // false
}