10000 GitHub - joy4eg/whois: Pure golang whois client
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

joy4eg/whois

Repository files navigation

WHOIS Lookup Library

This library provides functionality for performing WHOIS lookups for domain names. It supports multiple TLD (Top Level Domain) adapters and can automatically detect the appropriate WHOIS server based on the domain name.

Installation

To install the library, use the following command:

go get -u github.com/joy4eg/whois

Usage

package main

import (
    "context"
    "fmt"
    "log"

    "github.com/joy4eg/whois"
)

func main() {
    client, err := whois.New()
    if err != nil {
        log.Fatal(err)
    }
    defer client.Close()

    result, err := client.Whois(context.Background(), "example.com")
    if err != nil {
        log.Fatal(err)
    }

    fmt.Println(result)
}

Testing

go test ./...

About

Pure golang whois client

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0