Socket
Book a DemoInstallSign in
Socket

src.techknowlogick.com/disposable

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

src.techknowlogick.com/disposable

Go Modules
Version
v0.0.0-20251129223335-55bc49fb354e
Version published
Created
Source

Disposable Email Domain Checker

A Go package for detecting disposable email domains from the disposable-email-domains list.

Example

package main

import (
    "fmt"
    "src.techknowlogick.com/disposable"
)

func main() {
    if disposable.IsDisposable("10minutemail.com") {
        fmt.Println("This is a disposable email domain!")
    }

    if disposable.IsSubdomainDisposable("mail.10minutemail.com") {
        fmt.Println("Subdomain of disposable domain detected!")
    }

    disposable.AddDomains("mydisposable.com", "temp-mail.org")

    if disposable.IsDisposable("mydisposable.com") {
        fmt.Println("Custom disposable domain detected!")
    }
}

License

This package is licensed under the MIT License. See LICENSE file for details.

The disposable domain data is sourced from the disposable-email-domains project.

FAQs

Package last updated on 29 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts