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("[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
}