Skip to content

jtemps/disposable

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Disposable

Usage

Use it in your Go code

import "github.com/lavab/disposable"

if _, ok := disposable.Domains[strings.ToLower(aDomain)]; ok {
   log.Println("Domain", aDomain, "is not reliable, sorry.")
   panic("Why not panic?")
}

Get a plaintext or json file

Curling is fun:

# One domain per line
curl https://raw.githubusercontent.com/lavab/disposable/master/domains.txt
# A JSON array
curl https://raw.githubusercontent.com/lavab/disposable/master/domains.json

You can just download the files (txt or json).

Run the generator

disposable comes batteries-included. You can run .generate/generate.go to get a more up-to-date list of domains. However, some links might be dead. PRs are appreciated.

go get -u github.com/lavab/disposable
cd $GOHOME/src/github.com/lavab/disposable
go run .generate/generate.go

Credit

Andrei's recommendations

I recommend these services, they're fast and have good, non-spammy UI:

About

A list of disposable/temporary email address domains

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Go 100.0%