go-burner-email-providers

module
v1.0.111 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: MIT

README

go-burner-email-providers

Go Reference Daily list sync Go Report Card

Go package that detects burner (temporary) emails based on the community maintained wesbos/burner-email-providers list. This repository is synced daily against that list.

It does currently contain 23,367 domains and the lookup is done with a hash set for instant results.

Installation

go get github.com/lindell/go-burner-email-providers

Usage

import (
    "github.com/lindell/go-burner-email-providers/burner"
)

func main() {
	isBurnerEmail := burner.IsBurnerEmail("test@temp-mail.org")
	fmt.Println(isBurnerEmail) // true

	isBurnerEmail = burner.IsBurnerEmail("johan@gmail.com")
	fmt.Println(isBurnerEmail) // false

	isBurnerDomain := burner.IsBurnerDomain("temp-mail.org")
	fmt.Println(isBurnerDomain) // true

	isBurnerEmail = burner.IsBurnerDomain("gmail.com")
	fmt.Println(isBurnerEmail) // false
}

Size

Since the list of domains is quite large, the binary size and memory usage is not insignificant.

The increase of using this package is:

Where Size diff
On Disc 0.66 Mb
Memory 0.63 Mb

Directories

Path Synopsis
Package burner provides functions to check if the domain of an email or a domain is in the community maintained https://github.com/wesbos/burner-email-providers burner list.
Package burner provides functions to check if the domain of an email or a domain is in the community maintained https://github.com/wesbos/burner-email-providers burner list.
tools

Jump to

Keyboard shortcuts

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