disposable

package module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2015 License: MIT Imports: 0 Imported by: 0

README

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:

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Domain

func Domain(d string) bool

Domain tests whether a string is among the known set of disposable mailboxes

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL